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.001667/0.001667, allocations: 104.3 kB / 16.35 MB, free: 5.824 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.00175/0.00175, allocations: 190.7 kB / 17.29 MB, free: 5.48 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.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.02549/0.02549, allocations: 5.237 MB / 296.4 MB, free: 9.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 63.89 kB / 358.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2196, allocations: 50.55 MB / 409.2 MB, free: 29.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003485/0.2231, allocations: 3.168 MB / 412.4 MB, free: 26.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002954/0.2261, allocations: 3.192 MB / 415.6 MB, free: 23.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001549/0.2263, allocations: 8 kB / 415.6 MB, free: 23.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.2269, allocations: 275 kB / 415.8 MB, free: 23.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001284/0.2282, allocations: 0.7868 MB / 416.6 MB, free: 22.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.2285, allocations: 115.8 kB / 416.7 MB, free: 22.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006736/0.2291, allocations: 0.8406 MB / 417.6 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004684/0.2296, allocations: 0.5421 MB / 418.1 MB, free: 20.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.2299, allocations: 338.8 kB / 418.4 MB, free: 20.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003383/0.2302, allocations: 450.3 kB / 418.9 MB, free: 20.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.8e-05/0.2303, allocations: 60 kB / 418.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.2315, allocations: 0.9007 MB / 419.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.2317, allocations: 355.1 kB / 420.2 MB, free: 18.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002769/0.232, allocations: 429.8 kB / 420.6 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.2331, allocations: 1.43 MB / 422 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2331, allocations: 0 / 422 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2331, allocations: 0 / 422 MB, free: 17.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2331, allocations: 0 / 422 MB, free: 17.05 MB / 302.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.00197/0.2351, allocations: 1.339 MB / 423.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.2351, allocations: 12.03 kB / 423.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009412/0.2361, allocations: 187.2 kB / 423.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009824/0.2371, allocations: 0.7406 MB / 424.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.2372, allocations: 166.1 kB / 424.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.2373, allocations: 39.94 kB / 424.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.2388, allocations: 0.8371 MB / 425.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2388, allocations: 0 / 425.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.736e-05/0.2389, allocations: 23.88 kB / 425.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.2389, allocations: 15.94 kB / 425.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002105/0.241, allocations: 0.9586 MB / 426.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.2429, allocations: 1.726 MB / 428.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009737/0.2439, allocations: 390.2 kB / 428.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009153/0.2448, allocations: 376.4 kB / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.2449, allocations: 0 / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/0.2459, allocations: 450.9 kB / 429.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.246, allocations: 0 / 429.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002955/0.2489, allocations: 1.131 MB / 430.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.249, allocations: 162.2 kB / 430.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.2501, allocations: 1.052 MB / 431.6 MB, free: 7.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.2501, allocations: 25.7 kB / 431.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.2503, allocations: 376 kB / 432 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.513e-05/0.2504, allocations: 35.45 kB / 432 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.2505, allocations: 49.61 kB / 432.1 MB, free: 6.711 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.89e-05/0.2506, allocations: 314 kB / 432.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009462/0.2515, allocations: 371.6 kB / 432.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000951/0.2525, allocations: 436.2 kB / 433.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.2542, allocations: 0.6588 MB / 433.8 MB, free: 4.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.2542, allocations: 4 kB / 433.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002015/0.2562, allocations: 0.8078 MB / 434.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2563, allocations: 4 kB / 434.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2563, allocations: 0 / 434.6 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.2563, allocations: 4 kB / 434.7 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.2568, allocations: 119.9 kB / 434.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.2568, allocations: 3.938 kB / 434.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007197/0.2576, allocations: 135.5 kB / 434.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.2576, allocations: 8 kB / 434.9 MB, free: 3.828 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (switch2.count,$PRE.switch2.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003004/0.2579, allocations: 318.6 kB / 435.2 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.546e-05/0.258, allocations: 75.06 kB / 435.3 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.368e-05/0.2581, allocations: 82.88 kB / 435.4 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2581, allocations: 0 / 435.4 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.2581, allocations: 3.938 kB / 435.4 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.2581, allocations: 0 / 435.4 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005177/0.2587, allocations: 0.6895 MB / 436.1 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2587, allocations: 4 kB / 436.1 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.2591, allocations: 107.8 kB / 436.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2592, allocations: 4 kB / 436.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.2592, allocations: 0 / 436.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.2592, allocations: 0 / 436.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2592, allocations: 15.8 kB / 436.2 MB, free: 2.477 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.2612, allocations: 0.8041 MB / 437 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.2613, allocations: 152.1 kB / 437.2 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.2614, allocations: 8 kB / 437.2 MB, free: 1.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.2621, allocations: 111.8 kB / 437.3 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.2622, allocations: 51.88 kB / 437.3 MB, free: 1.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.2623, allocations: 11.98 kB / 437.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008183/0.2631, allocations: 0.7683 MB / 438.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2631, allocations: 0 / 438.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006147/0.2637, allocations: 267.6 kB / 438.4 MB, free: 288 kB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006379/0.2644, allocations: 362.7 kB / 438.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.2666, allocations: 0.7493 MB / 439.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.2666, allocations: 0 / 439.5 MB, free: 15.17 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.2677, allocations: 391.6 kB / 439.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008872/0.2686, allocations: 228.4 kB / 440.1 MB, free: 14.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.2712, allocations: 1.569 MB / 441.6 MB, free: 12.96 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.2717, allocations: 1.053 MB / 442.7 MB, free: 11.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003756/0.2721, allocations: 124.3 kB / 442.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.2723, allocations: 43.42 kB / 442.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2723, allocations: 0 / 442.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of Templates: time 0.02148/0.2938, allocations: 14.46 MB / 457.3 MB, free: 13.43 MB / 334.1 MB make -j1 -f DeltaRobot_DeltaRobot.Tests.Switch2_test.makefile (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 -s gbode -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)