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.0009588/0.000959, allocations: 101.1 kB / 17.01 MB, free: 6.391 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.001103/0.001103, allocations: 182.2 kB / 17.89 MB, free: 5.922 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.415/1.415, allocations: 223.2 MB / 241.9 MB, free: 340 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.2452/0.2452, allocations: 44.23 MB / 337.2 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004574/0.0004576, allocations: 10.66 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1359, allocations: 61.92 MB / 471.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00294/0.1389, allocations: 2.463 MB / 474.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.14, allocations: 0.6236 MB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1401, allocations: 7.938 kB / 474.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1403, allocations: 43.69 kB / 474.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.1404, allocations: 79.38 kB / 474.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.1406, allocations: 59.92 kB / 474.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.141, allocations: 370.4 kB / 475.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.1412, allocations: 90.48 kB / 475.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.1413, allocations: 123.6 kB / 475.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1415, allocations: 147.4 kB / 475.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.831e-05/0.1416, allocations: 16 kB / 475.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.4e-05/0.1416, allocations: 23.94 kB / 475.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.311e-05/0.1417, allocations: 55.81 kB / 475.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.244e-05/0.1418, allocations: 85.52 kB / 475.8 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.1421, allocations: 279.1 kB / 476.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1421, allocations: 0 / 476.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1421, allocations: 0 / 476.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1421, allocations: 0 / 476.1 MB, free: 9.191 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.000999/0.1431, allocations: 0.6003 MB / 476.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1431, allocations: 8.562 kB / 476.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.272e-05/0.1432, allocations: 70.53 kB / 476.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.689e-05/0.1433, allocations: 31.62 kB / 476.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/0.1436, allocations: 255.1 kB / 477 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.1436, allocations: 24.52 kB / 477.1 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.1437, allocations: 28 kB / 477.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005924/0.1443, allocations: 328.5 kB / 477.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.1443, allocations: 0 / 477.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.1444, allocations: 12 kB / 477.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1444, allocations: 11.98 kB / 477.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004909/0.1449, allocations: 258.1 kB / 477.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.1469, allocations: 1.285 MB / 479 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007507/0.1476, allocations: 487.5 kB / 479.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/0.1479, allocations: 176.5 kB / 479.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.148, allocations: 4.234 kB / 479.6 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.148, allocations: 34.8 kB / 479.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=27): time 1.704e-06/0.148, allocations: 0 / 479.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002982/0.151, allocations: 1.178 MB / 480.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.151, allocations: 55.41 kB / 480.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.1513, allocations: 244.9 kB / 481.1 MB, free: 3.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.1513, allocations: 37.64 kB / 481.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.1516, allocations: 160.4 kB / 481.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.1516, allocations: 94.64 kB / 481.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.305e-05/0.1517, allocations: 4 kB / 481.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002048/0.1519, allocations: 334.8 kB / 481.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000228/0.1521, allocations: 115.9 kB / 481.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002785/0.1524, allocations: 148.2 kB / 482 MB, free: 2.914 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.1526, allocations: 120 kB / 482.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1526, allocations: 0 / 482.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001117/0.1538, allocations: 0.5338 MB / 482.7 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.1538, allocations: 7.984 kB / 482.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1538, allocations: 0 / 482.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000906/0.1547, allocations: 285.5 kB / 482.9 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001409/0.1549, allocations: 31.92 kB / 483 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004078/0.159, allocations: 3.514 MB / 486.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.1592, allocations: 43.7 kB / 486.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.1592, allocations: 8 kB / 486.5 MB, free: 14.09 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.0001654/0.1594, allocations: 137.8 kB / 486.7 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.1594, allocations: 27.72 kB / 486.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.682e-05/0.1595, allocations: 42.86 kB / 486.7 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1595, allocations: 4 kB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.1595, allocations: 0 / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1596, allocations: 4 kB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.1612, allocations: 0.9329 MB / 487.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1612, allocations: 0 / 487.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.204e-05/0.1613, allocations: 19.98 kB / 487.7 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008591/0.1622, allocations: 285.4 kB / 488 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.1622, allocations: 4 kB / 488 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004185/0.1664, allocations: 3.515 MB / 491.5 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1664, allocations: 0 / 491.5 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001228/0.1677, allocations: 0.5837 MB / 492.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.1678, allocations: 124.7 kB / 492.2 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.1679, allocations: 11.94 kB / 492.2 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.1681, allocations: 35.98 kB / 492.3 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.78e-05/0.1682, allocations: 31.89 kB / 492.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.1682, allocations: 4 kB / 492.3 MB, free: 7.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001652/0.1684, allocations: 176.5 kB / 492.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1684, allocations: 0 / 492.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000447/0.1688, allocations: 103.9 kB / 492.6 MB, free: 7.688 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.001611/0.1704, allocations: 1.139 MB / 493.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001104/0.1716, allocations: 0.5714 MB / 494.3 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.1716, allocations: 0 / 494.3 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006304/0.1722, allocations: 449.2 kB / 494.7 MB, free: 5.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.1727, allocations: 44.42 kB / 494.8 MB, free: 5.406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.1761, allocations: 1.792 MB / 496.6 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.1765, allocations: 0.7716 MB / 497.3 MB, free: 2.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000114/0.1767, allocations: 22.3 kB / 497.3 MB, free: 2.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.1768, allocations: 75.41 kB / 497.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1768, allocations: 0 / 497.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0317/0.2085, allocations: 6.394 MB / 0.492 GB, free: 12.47 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003178/0.2089, allocations: 221.4 kB / 0.4922 GB, free: 12.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.152, allocations: 0 / 0.4922 GB, free: 12.23 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