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.001248/0.001248, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001536/0.001536, allocations: 177.3 kB / 15.95 MB, free: 216 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.517/1.517, allocations: 223.2 MB / 239.9 MB, free: 5.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.166/0.166, allocations: 5.188 MB / 296.2 MB, free: 4.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.0003202, allocations: 11.98 kB / 358.3 MB, free: 1.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1062, allocations: 51.54 MB / 409.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.00516/0.1114, allocations: 3.704 MB / 413.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005435/0.1169, allocations: 3.109 MB / 416.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005256/0.1175, allocations: 4 kB / 416.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009439/0.1184, allocations: 286.5 kB / 417 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002594/0.1211, allocations: 1.093 MB / 418 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003694/0.1214, allocations: 119.5 kB / 418.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009333/0.1224, allocations: 0.5926 MB / 418.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005593/0.123, allocations: 422.9 kB / 419.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.1233, allocations: 239.1 kB / 419.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003819/0.1237, allocations: 310.7 kB / 419.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.215e-05/0.1238, allocations: 20 kB / 419.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001441/0.1252, allocations: 0.7137 MB / 420.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002726/0.1255, allocations: 287.2 kB / 420.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001837/0.1257, allocations: 177.3 kB / 420.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1271, allocations: 1.091 MB / 422 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1271, allocations: 0 / 422 MB, free: 1.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1271, allocations: 3.938 kB / 422 MB, free: 1.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.1271, allocations: 0 / 422 MB, free: 1.984 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.004211/0.1314, allocations: 1.269 MB / 423.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.754e-05/0.1315, allocations: 11.97 kB / 423.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002421/0.1317, allocations: 82.53 kB / 423.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004491/0.1362, allocations: 354.4 kB / 423.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2088/0.3451, allocations: 1.059 MB / 424.8 MB, free: 44.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01064/0.3558, allocations: 2.5 MB / 427.3 MB, free: 44.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001811/0.356, allocations: 34.41 kB / 427.3 MB, free: 44.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/0.3679, allocations: 3.416 MB / 430.7 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.3679, allocations: 0 / 430.7 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.25e-05/0.368, allocations: 13.28 kB / 430.7 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.368, allocations: 12.47 kB / 430.7 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02201/0.3901, allocations: 5.988 MB / 436.7 MB, free: 44.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004233/0.3943, allocations: 2.389 MB / 439.1 MB, free: 43.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0114/0.4058, allocations: 2.895 MB / 442 MB, free: 43.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.4059, allocations: 2.688 kB / 442 MB, free: 43.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01206/0.4179, allocations: 3.009 MB / 445 MB, free: 43.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.998e-06/0.418, allocations: 0 / 445 MB, free: 43.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.03546/0.4535, allocations: 8.441 MB / 453.5 MB, free: 41.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001813/0.4537, allocations: 158.7 kB / 453.6 MB, free: 40.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003886/0.4576, allocations: 1.467 MB / 455.1 MB, free: 40.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.4578, allocations: 31.45 kB / 455.1 MB, free: 40.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.4582, allocations: 397 kB / 455.5 MB, free: 39.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.4584, allocations: 37.83 kB / 455.5 MB, free: 39.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/0.4584, allocations: 1.219 kB / 455.5 MB, free: 39.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.947e-05/0.4585, allocations: 320.3 kB / 455.8 MB, free: 39.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01151/0.47, allocations: 2.874 MB / 458.7 MB, free: 38.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01147/0.4815, allocations: 2.913 MB / 461.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/0.4925, allocations: 2.573 MB / 464.2 MB, free: 35.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.4926, allocations: 3.828 kB / 464.2 MB, free: 35.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.02305/0.5156, allocations: 5.574 MB / 469.8 MB, free: 33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.5157, allocations: 3.844 kB / 469.8 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.5157, allocations: 4 kB / 469.8 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.5158, allocations: 3.875 kB / 469.8 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005686/0.5215, allocations: 1.247 MB / 471 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.5215, allocations: 4 kB / 471 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005747/0.5273, allocations: 1.278 MB / 472.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.5274, allocations: 19.98 kB / 472.3 MB, free: 31.19 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.0005922/0.528, allocations: 321.6 kB / 472.7 MB, free: 30.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002561/0.5283, allocations: 71.06 kB / 472.7 MB, free: 30.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.5285, allocations: 88.77 kB / 472.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.5285, allocations: 4.875 kB / 472.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.5285, allocations: 0 / 472.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.5285, allocations: 0.6562 kB / 472.8 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.5297, allocations: 0.9782 MB / 473.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.5297, allocations: 0 / 473.8 MB, free: 29.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005335/0.535, allocations: 1.252 MB / 475.1 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.5351, allocations: 0.8125 kB / 475.1 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.428e-05/0.5351, allocations: 11.98 kB / 475.1 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.5352, allocations: 4 kB / 475.1 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.5352, allocations: 0.6562 kB / 475.1 MB, free: 28.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.022/0.5572, allocations: 5.599 MB / 480.7 MB, free: 22.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005178/0.5577, allocations: 239.9 kB / 480.9 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/0.5581, allocations: 6.625 kB / 480.9 MB, free: 22.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005743/0.5638, allocations: 1.263 MB / 482.2 MB, free: 21.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000367/0.5642, allocations: 195.7 kB / 482.4 MB, free: 21.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.963e-05/0.5644, allocations: 23.97 kB / 482.4 MB, free: 21.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001642/0.566, allocations: 1.097 MB / 483.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.566, allocations: 0 / 483.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000964/0.567, allocations: 317.7 kB / 483.8 MB, free: 19.66 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.02269/0.5897, allocations: 6.285 MB / 490.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.02184/0.6116, allocations: 5.77 MB / 495.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.6116, allocations: 0.6562 kB / 495.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01103/0.6227, allocations: 3.036 MB / 498.9 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.6239, allocations: 209 kB / 499.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05626/0.6802, allocations: 16.48 MB / 0.5035 GB, free: 3.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006247/0.6809, allocations: 1.065 MB / 0.5045 GB, free: 2.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.6819, allocations: 249 kB / 0.5048 GB, free: 2.449 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006486/0.6826, allocations: 279.3 kB / 0.505 GB, free: 2.176 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6826, allocations: 0 / 0.505 GB, free: 2.176 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05183/0.7344, allocations: 31.96 MB / 0.5362 GB, free: 2.461 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.7347, allocations: 153.8 kB / 0.5364 GB, free: 2.219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.434/3.169, allocations: 0 / 0.5364 GB, free: 2.219 MB / 398.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: