Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009916/0.0009916, allocations: 97.52 kB / 16.94 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 183 kB / 17.83 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.836/1.836, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006809/0.0006809, allocations: 12 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1543, allocations: 47.59 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003472/0.1579, allocations: 2.641 MB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.1593, allocations: 0.7374 MB / 331.8 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.1595, allocations: 11.94 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.1597, allocations: 43.67 kB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.1599, allocations: 87.25 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000382/0.1602, allocations: 83.91 kB / 332.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004925/0.1607, allocations: 382.2 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002835/0.161, allocations: 110.7 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.1613, allocations: 139.5 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.1615, allocations: 151.2 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.51e-05/0.1616, allocations: 20 kB / 332.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.133e-05/0.1616, allocations: 20 kB / 332.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.987e-05/0.1617, allocations: 55.77 kB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.1618, allocations: 97.5 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.1622, allocations: 303.4 kB / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.1622, allocations: 0 / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1622, allocations: 0 / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1623, allocations: 0 / 333.3 MB, free: 15.1 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001167/0.1634, allocations: 0.5963 MB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.1635, allocations: 8.031 kB / 333.9 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.1636, allocations: 74.53 kB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.334e-05/0.1637, allocations: 39.53 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.1641, allocations: 276 kB / 334.3 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.1643, allocations: 76.06 kB / 334.4 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.858e-05/0.1643, allocations: 35.98 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006231/0.165, allocations: 338.7 kB / 334.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.165, allocations: 0 / 334.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.442e-05/0.165, allocations: 12 kB / 334.7 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.1651, allocations: 8 kB / 334.7 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.1655, allocations: 222.5 kB / 335 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.1675, allocations: 1.391 MB / 336.4 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.1678, allocations: 182.4 kB / 336.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.168, allocations: 84.83 kB / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.168, allocations: 0 / 336.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/0.1684, allocations: 163.5 kB / 336.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.213e-06/0.1684, allocations: 0 / 336.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001089/0.1695, allocations: 420.8 kB / 337.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.301e-05/0.1696, allocations: 106.8 kB / 337.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/0.1699, allocations: 263 kB / 337.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/0.1699, allocations: 33.64 kB / 337.6 MB, free: 10.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.1701, allocations: 207.9 kB / 337.8 MB, free: 10.28 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.436e-05/0.1702, allocations: 71.02 kB / 337.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.506e-05/0.1702, allocations: 4 kB / 337.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1704, allocations: 342.8 kB / 338.2 MB, free: 9.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.1706, allocations: 76.62 kB / 338.3 MB, free: 9.785 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.1709, allocations: 185.4 kB / 338.4 MB, free: 9.562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000206/0.1711, allocations: 93.12 kB / 338.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1711, allocations: 0 / 338.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007053/0.1718, allocations: 343.8 kB / 338.9 MB, free: 9.129 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.547e-05/0.1719, allocations: 8.344 kB / 338.9 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/0.1719, allocations: 4 kB / 338.9 MB, free: 9.117 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003371/0.1722, allocations: 56.81 kB / 338.9 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.1725, allocations: 63.91 kB / 339 MB, free: 8.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.1742, allocations: 1.412 MB / 340.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.1745, allocations: 47.7 kB / 340.5 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.1745, allocations: 19.98 kB / 340.5 MB, free: 7.383 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001843/0.1747, allocations: 153.7 kB / 340.6 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.012e-05/0.1748, allocations: 35.66 kB / 340.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.198e-05/0.1748, allocations: 30.17 kB / 340.7 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1749, allocations: 7.938 kB / 340.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1749, allocations: 0 / 340.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1749, allocations: 0 / 340.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003782/0.1753, allocations: 337.4 kB / 341 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1753, allocations: 0 / 341 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.1755, allocations: 39.98 kB / 341.1 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001809/0.1757, allocations: 52.81 kB / 341.1 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1757, allocations: 4 kB / 341.1 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001238/0.1769, allocations: 1.327 MB / 342.5 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1769, allocations: 0 / 342.5 MB, free: 5.215 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006743/0.1776, allocations: 362.1 kB / 342.8 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.1777, allocations: 116.8 kB / 342.9 MB, free: 4.707 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.1778, allocations: 4 kB / 342.9 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.178, allocations: 32 kB / 343 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.385e-05/0.1781, allocations: 35.83 kB / 343 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1781, allocations: 7.984 kB / 343 MB, free: 4.629 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002042/0.1783, allocations: 182 kB / 343.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1783, allocations: 0 / 343.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003764/0.1787, allocations: 83.84 kB / 343.3 MB, free: 4.367 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001025/0.1797, allocations: 0.8979 MB / 344.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006127/0.1803, allocations: 310.4 kB / 344.5 MB, free: 3.121 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1804, allocations: 0 / 344.5 MB, free: 3.121 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.1807, allocations: 203.4 kB / 344.7 MB, free: 2.91 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.181, allocations: 40.5 kB / 344.7 MB, free: 2.871 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.1842, allocations: 1.84 MB / 346.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004249/0.1847, allocations: 0.7713 MB / 347.3 MB, free: 156 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001296/0.1848, allocations: 30.28 kB / 347.3 MB, free: 120 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.1849, allocations: 91.41 kB / 347.4 MB, free: 28 kB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1849, allocations: 0 / 347.4 MB, free: 28 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.2041, allocations: 5.307 MB / 352.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.2044, allocations: 228.7 kB / 353 MB, free: 10.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.381, allocations: 0 / 353 MB, free: 10.48 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat