Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr DeltaRobot_DeltaRobot.Tests.Switch2_test.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/DeltaRobot 1.0.2/package.mo", uses=false) Using package DeltaRobot with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/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(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(DeltaRobot.Tests.Switch2_test,fileNamePrefix="DeltaRobot_DeltaRobot_Tests_Switch2_test",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.0007999/0.0007999, allocations: 85.94 kB / 15.06 MB, free: 1.09 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.0007962/0.0007962, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1589/0.1589, allocations: 5.196 MB / 296.3 MB, free: 3.965 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003791/0.0003791, allocations: 11.94 kB / 358.4 MB, free: 1.699 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1056, allocations: 51.55 MB / 410 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003908/0.1096, allocations: 3.988 MB / 414 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004609/0.1142, allocations: 3.194 MB / 417.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/0.1145, allocations: 7.938 kB / 417.2 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008034/0.1153, allocations: 282.4 kB / 417.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002478/0.1178, allocations: 1.041 MB / 418.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.1182, allocations: 107.6 kB / 418.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.1193, allocations: 0.9341 MB / 419.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005628/0.1199, allocations: 410.9 kB / 419.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003614/0.1202, allocations: 262.9 kB / 420.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00044/0.1207, allocations: 386.5 kB / 420.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.952e-05/0.1208, allocations: 20 kB / 420.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001302/0.1221, allocations: 0.7213 MB / 421.3 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.1223, allocations: 295.2 kB / 421.6 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.1225, allocations: 177.2 kB / 421.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.1236, allocations: 1.115 MB / 422.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1237, allocations: 0 / 422.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1237, allocations: 0 / 422.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1237, allocations: 0 / 422.9 MB, free: 1.156 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.2328/0.3565, allocations: 1.261 MB / 424.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3565, allocations: 7.531 kB / 424.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003114/0.3569, allocations: 85.52 kB / 424.2 MB, free: 45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002555/0.3594, allocations: 351.5 kB / 424.6 MB, free: 44.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.3614, allocations: 1.074 MB / 425.6 MB, free: 44.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.008966/0.3704, allocations: 2.501 MB / 428.1 MB, free: 44.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.3706, allocations: 32.81 kB / 428.2 MB, free: 44.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.3811, allocations: 3.414 MB / 431.6 MB, free: 44.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.3812, allocations: 3.438 kB / 431.6 MB, free: 44.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.93e-05/0.3813, allocations: 13.06 kB / 431.6 MB, free: 44.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3813, allocations: 9.375 kB / 431.6 MB, free: 44.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01966/0.4009, allocations: 5.985 MB / 437.6 MB, free: 44.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00366/0.4047, allocations: 2.388 MB / 440 MB, free: 43.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009936/0.4146, allocations: 2.891 MB / 442.9 MB, free: 43.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01105/0.4257, allocations: 2.891 MB / 445.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.978e-05/0.4258, allocations: 3.25 kB / 445.8 MB, free: 43.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01092/0.4368, allocations: 3.002 MB / 448.8 MB, free: 43.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 4.067e-06/0.4368, allocations: 4 kB / 448.8 MB, free: 43.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0296/0.4664, allocations: 8.445 MB / 457.2 MB, free: 39.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.256e-05/0.4666, allocations: 160.2 kB / 457.4 MB, free: 39.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002287/0.4689, allocations: 1.469 MB / 458.8 MB, free: 38.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.923e-05/0.469, allocations: 30.83 kB / 458.9 MB, free: 38.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002932/0.4693, allocations: 388 kB / 459.3 MB, free: 38.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.4694, allocations: 40.98 kB / 459.3 MB, free: 38.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.4694, allocations: 0.9688 kB / 459.3 MB, free: 38.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.987e-05/0.4695, allocations: 316 kB / 459.6 MB, free: 38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01001/0.4795, allocations: 2.874 MB / 462.5 MB, free: 36.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01015/0.4897, allocations: 2.924 MB / 465.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009398/0.4991, allocations: 2.569 MB / 468 MB, free: 34.03 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.4992, allocations: 0 / 468 MB, free: 34.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.01914/0.5183, allocations: 5.571 MB / 473.5 MB, free: 30 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.5184, allocations: 4 kB / 473.5 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.5184, allocations: 4 kB / 473.6 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.5185, allocations: 0.8438 kB / 473.6 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004724/0.5232, allocations: 1.256 MB / 474.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.5232, allocations: 4 kB / 474.8 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004999/0.5282, allocations: 1.279 MB / 476.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.515e-05/0.5283, allocations: 21.05 kB / 476.1 MB, free: 27.43 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.switch2.count,switch2.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005127/0.5289, allocations: 309.6 kB / 476.4 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.529, allocations: 79.56 kB / 476.5 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.5291, allocations: 87.28 kB / 476.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.5291, allocations: 0 / 476.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.5292, allocations: 8.703 kB / 476.6 MB, free: 26.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.5292, allocations: 4.984 kB / 476.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009053/0.5301, allocations: 0.9741 MB / 477.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.5301, allocations: 0 / 477.6 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004525/0.5346, allocations: 1.257 MB / 478.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.5347, allocations: 0 / 478.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.198e-05/0.5347, allocations: 11.98 kB / 478.8 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.5347, allocations: 3.953 kB / 478.8 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5347, allocations: 0.6562 kB / 478.8 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0187/0.5534, allocations: 5.596 MB / 484.4 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004541/0.5539, allocations: 243.9 kB / 484.7 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000186/0.5541, allocations: 4 kB / 484.7 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004736/0.5589, allocations: 1.27 MB / 485.9 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/0.5592, allocations: 195.6 kB / 486.1 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.517e-05/0.5593, allocations: 30.22 kB / 486.2 MB, free: 17.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001413/0.5607, allocations: 1.096 MB / 487.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5607, allocations: 0 / 487.3 MB, free: 16.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008483/0.5616, allocations: 313.3 kB / 487.6 MB, free: 15.91 MB / 350.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: 2 ($whenCondition1,switch2.count) * Number of discrete states: 1 (switch2.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01921/0.5808, allocations: 6.278 MB / 493.8 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0185/0.5993, allocations: 5.776 MB / 499.6 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.5994, allocations: 4 kB / 499.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009552/0.609, allocations: 3.03 MB / 0.4909 GB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.6103, allocations: 216.4 kB / 0.4911 GB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05046/0.6608, allocations: 16.62 MB / 0.5073 GB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005886/0.6614, allocations: 1.05 MB / 0.5083 GB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.6625, allocations: 245.6 kB / 0.5086 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006403/0.6632, allocations: 280.3 kB / 0.5088 GB, free: 14.27 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6632, allocations: 0 / 0.5088 GB, free: 14.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04891/0.7121, allocations: 31.98 MB / 0.5401 GB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/0.7123, allocations: 162.1 kB / 0.5402 GB, free: 14.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/2.979, allocations: 3.984 kB / 0.5402 GB, free: 14.29 MB / 414.1 MB (rm -f DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; mkfifo DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe ; head -c 1048576 < DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe >> ../files/DeltaRobot_DeltaRobot.Tests.Switch2_test.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_DeltaRobot_DeltaRobot_Tests_Switch2_test_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 DeltaRobot_DeltaRobot_Tests_Switch2_test.fmu > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) Environment - environmentSimulation: