Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",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.0009658/0.000966, allocations: 98.88 kB / 16.99 MB, free: 5.934 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.000904/0.0009042, allocations: 176.5 kB / 17.87 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2376/0.2376, allocations: 44.23 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005544/0.0005545, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1395, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.003298/0.1428, allocations: 2.319 MB / 473.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.144, allocations: 0.6355 MB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1442, allocations: 8 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.496e-05/0.1443, allocations: 39.67 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.1445, allocations: 119.7 kB / 474.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001514/0.1447, allocations: 63.92 kB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003537/0.1451, allocations: 271.4 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.1453, allocations: 98.47 kB / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.1455, allocations: 119.6 kB / 475.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.1457, allocations: 143.4 kB / 475.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.885e-05/0.1457, allocations: 16 kB / 475.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.326e-05/0.1458, allocations: 24 kB / 475.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.822e-05/0.1458, allocations: 55.81 kB / 475.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.224e-05/0.1459, allocations: 85.52 kB / 475.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.1462, allocations: 279.1 kB / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1462, allocations: 0 / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.1462, allocations: 0 / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1462, allocations: 0 / 475.8 MB, free: 9.363 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001119/0.1474, allocations: 0.5925 MB / 476.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.1474, allocations: 12.56 kB / 476.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.843e-05/0.1475, allocations: 62.53 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.708e-05/0.1476, allocations: 35.62 kB / 476.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.148, allocations: 263 kB / 476.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.1481, allocations: 24.52 kB / 476.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.1481, allocations: 27.94 kB / 476.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005907/0.1487, allocations: 332.5 kB / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.1487, allocations: 3.938 kB / 477.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.1488, allocations: 12 kB / 477.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1488, allocations: 8 kB / 477.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004966/0.1493, allocations: 254.1 kB / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.1513, allocations: 1.285 MB / 478.7 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000786/0.1521, allocations: 493.3 kB / 479.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.1521, allocations: 4.234 kB / 479.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.1522, allocations: 42.8 kB / 479.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 2.324e-06/0.1522, allocations: 0 / 479.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003084/0.1553, allocations: 1.163 MB / 480.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.1553, allocations: 55.41 kB / 480.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002481/0.1556, allocations: 240.9 kB / 480.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.1556, allocations: 33.7 kB / 480.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.1557, allocations: 168.3 kB / 480.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.921e-05/0.1558, allocations: 94.66 kB / 481 MB, free: 3.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.455e-05/0.1558, allocations: 4 kB / 481 MB, free: 3.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.156, allocations: 338.8 kB / 481.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.1563, allocations: 107.9 kB / 481.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.1565, allocations: 148.2 kB / 481.5 MB, free: 3.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.1568, allocations: 120 kB / 481.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1569, allocations: 0 / 481.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001293/0.1582, allocations: 0.5338 MB / 482.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1582, allocations: 4 kB / 482.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1582, allocations: 0 / 482.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.1592, allocations: 289.5 kB / 482.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.1594, allocations: 31.92 kB / 482.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004507/0.1639, allocations: 3.585 MB / 486.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.1642, allocations: 43.73 kB / 486.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1642, allocations: 8 kB / 486.1 MB, free: 14.37 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.1644, allocations: 145.7 kB / 486.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.604e-05/0.1645, allocations: 27.72 kB / 486.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.1645, allocations: 30.86 kB / 486.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1645, allocations: 4 kB / 486.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.1646, allocations: 4 kB / 486.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.1646, allocations: 0 / 486.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001808/0.1664, allocations: 0.9329 MB / 487.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/0.1664, allocations: 4 kB / 487.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.725e-05/0.1665, allocations: 23.92 kB / 487.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009154/0.1674, allocations: 281.5 kB / 487.6 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.1675, allocations: 12 kB / 487.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004248/0.1717, allocations: 3.574 MB / 491.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.1717, allocations: 4.031 kB / 491.2 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.173, allocations: 0.5876 MB / 491.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/0.1732, allocations: 116.7 kB / 491.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.1732, allocations: 8 kB / 491.9 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.1735, allocations: 35.94 kB / 491.9 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.1736, allocations: 31.94 kB / 492 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.1736, allocations: 8 kB / 492 MB, free: 8.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.1737, allocations: 172.4 kB / 492.1 MB, free: 8.004 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1739, allocations: 4 kB / 492.1 MB, free: 8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.1743, allocations: 99.91 kB / 492.2 MB, free: 7.902 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001407/0.1757, allocations: 1.131 MB / 493.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.1769, allocations: 0.5714 MB / 493.9 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1769, allocations: 0 / 493.9 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007342/0.1777, allocations: 453.1 kB / 494.4 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.178, allocations: 44.41 kB / 494.4 MB, free: 5.625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003342/0.1814, allocations: 2.393 MB / 496.8 MB, free: 3.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.1818, allocations: 0.7716 MB / 497.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.1819, allocations: 22.28 kB / 497.6 MB, free: 2.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.182, allocations: 79.41 kB / 497.7 MB, free: 2.266 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1821, allocations: 0 / 497.7 MB, free: 2.266 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.2016, allocations: 6.361 MB / 0.4922 GB, free: 12.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003753/0.2021, allocations: 223.4 kB / 0.4924 GB, free: 11.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.048, allocations: 0 / 0.4924 GB, free: 11.86 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat does not exist to compare? outputFormat=mat