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: translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") translateModel(DeltaRobot.Tests.Switch2_test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="DeltaRobot_DeltaRobot.Tests.Switch2_test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009308/0.0009309, 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.000891/0.0008911, 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.448/1.448, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.2348/0.2348, allocations: 5.196 MB / 296.2 MB, free: 4.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.0003109, allocations: 8 kB / 358.2 MB, free: 1.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1264, allocations: 51.53 MB / 409.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.00394/0.1304, allocations: 3.707 MB / 413.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004707/0.1351, allocations: 3.112 MB / 416.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/0.1354, allocations: 11.94 kB / 416.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008245/0.1363, allocations: 282.6 kB / 416.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002254/0.1385, allocations: 1.097 MB / 418 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.1388, allocations: 115.7 kB / 418.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007803/0.1396, allocations: 0.5887 MB / 418.7 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005025/0.1401, allocations: 410.9 kB / 419.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.1404, allocations: 247 kB / 419.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003302/0.1408, allocations: 314.7 kB / 419.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.1408, allocations: 20 kB / 419.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001288/0.1421, allocations: 0.7099 MB / 420.4 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002413/0.1424, allocations: 283.2 kB / 420.6 MB, free: 3.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.1425, allocations: 177.2 kB / 420.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.1436, allocations: 1.103 MB / 421.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1436, allocations: 0 / 421.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1436, allocations: 0 / 421.9 MB, free: 2.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.1436, allocations: 0 / 421.9 MB, free: 2.055 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.002325/0.1459, allocations: 1.257 MB / 423.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.146, allocations: 11.97 kB / 423.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002665/0.1487, allocations: 358.4 kB / 423.5 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2311/0.3797, allocations: 1.06 MB / 424.6 MB, free: 44.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.01029/0.3901, allocations: 2.502 MB / 427.1 MB, free: 44.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.3903, allocations: 37.83 kB / 427.1 MB, free: 44.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01624/0.4065, allocations: 3.409 MB / 430.5 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.4066, allocations: 1.891 kB / 430.5 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.4067, allocations: 12.69 kB / 430.6 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.498e-05/0.4068, allocations: 12.59 kB / 430.6 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03351/0.4403, allocations: 5.987 MB / 436.6 MB, free: 44.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005007/0.4454, allocations: 2.392 MB / 438.9 MB, free: 43.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01613/0.4615, allocations: 2.891 MB / 441.8 MB, free: 43.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.4616, allocations: 2.297 kB / 441.8 MB, free: 43.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01725/0.4789, allocations: 3.016 MB / 444.9 MB, free: 43.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 5.38e-06/0.479, allocations: 0 / 444.9 MB, free: 43.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.03846/0.5174, allocations: 8.435 MB / 453.3 MB, free: 41.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.5176, allocations: 161.7 kB / 453.5 MB, free: 41.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002448/0.52, allocations: 1.468 MB / 454.9 MB, free: 40.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.319e-05/0.5201, allocations: 31.08 kB / 454.9 MB, free: 40.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.5204, allocations: 389.1 kB / 455.3 MB, free: 40.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.423e-05/0.5205, allocations: 41.66 kB / 455.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.321e-05/0.5205, allocations: 1.375 kB / 455.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.262e-05/0.5206, allocations: 315.3 kB / 455.7 MB, free: 39.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01128/0.5319, allocations: 2.874 MB / 458.6 MB, free: 38.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01127/0.5432, allocations: 2.928 MB / 461.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.5539, allocations: 2.565 MB / 464 MB, free: 35.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.5539, allocations: 1.094 kB / 464 MB, free: 35.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.02288/0.5768, allocations: 5.566 MB / 469.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/0.5769, allocations: 7.719 kB / 469.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.5769, allocations: 0 / 469.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.577, allocations: 0 / 469.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005306/0.5823, allocations: 1.259 MB / 470.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.5823, allocations: 3.828 kB / 470.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00586/0.5882, allocations: 1.291 MB / 472.2 MB, free: 31.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.529e-05/0.5883, allocations: 17.86 kB / 472.2 MB, free: 31.52 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.0004565/0.5887, allocations: 313.6 kB / 472.5 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.5889, allocations: 75.06 kB / 472.6 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.589, allocations: 87.28 kB / 472.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.589, allocations: 0 / 472.7 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.589, allocations: 4 kB / 472.7 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.589, allocations: 0 / 472.7 MB, free: 31.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008941/0.5899, allocations: 0.9755 MB / 473.6 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.59, allocations: 4 kB / 473.6 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005197/0.5952, allocations: 1.252 MB / 474.9 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.5952, allocations: 0 / 474.9 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.5952, allocations: 11.98 kB / 474.9 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.5953, allocations: 3.984 kB / 474.9 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5953, allocations: 1.031 kB / 474.9 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02144/0.6167, allocations: 5.6 MB / 480.5 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005349/0.6173, allocations: 239.9 kB / 480.7 MB, free: 22.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002062/0.6175, allocations: 4 kB / 480.7 MB, free: 22.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005545/0.623, allocations: 1.263 MB / 482 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003244/0.6234, allocations: 199.6 kB / 482.2 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-05/0.6235, allocations: 23.97 kB / 482.2 MB, free: 21.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001444/0.6249, allocations: 1.092 MB / 483.3 MB, free: 20.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.6249, allocations: 0 / 483.3 MB, free: 20.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008817/0.6258, allocations: 319.9 kB / 483.6 MB, free: 19.98 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.0005176/0.6264, allocations: 243.5 kB / 483.9 MB, free: 19.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.02125/0.6476, allocations: 5.782 MB / 489.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.6477, allocations: 0 / 489.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01088/0.6586, allocations: 3.026 MB / 492.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.6597, allocations: 207.4 kB / 492.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.6733, allocations: 4.201 MB / 497.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.6737, allocations: 1.064 MB / 498.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009185/0.6747, allocations: 249.4 kB / 498.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003843/0.6751, allocations: 71.31 kB / 498.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of SimCode: time 1.543e-06/0.6751, allocations: 0 / 498.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of Templates: time 0.03558/0.7106, allocations: 24.44 MB / 0.5106 GB, free: 12.82 MB / 382.1 MB make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile Environment - environmentSimulation: (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 & ./DeltaRobot_DeltaRobot.Tests.Switch2_test -abortSlowSimulation -alarm=480 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1) Environment - environmentSimulation: