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.005918/0.005918, allocations: 102.2 kB / 15.73 MB, free: 6.484 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.001241/0.001241, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/DeltaRobot 1.0.2/package.mo): time 0.1739/0.1739, allocations: 5.198 MB / 295.7 MB, free: 2.996 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001389, allocations: 59.89 kB / 409 MB, free: 13.97 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2428, allocations: 50.57 MB / 459.6 MB, free: 19.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(DeltaRobot.Tests.Switch2_test): time 0.003373/0.2462, allocations: 3.157 MB / 462.8 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00341/0.2497, allocations: 3.191 MB / 466 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.2499, allocations: 5.906 kB / 466 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007461/0.2506, allocations: 267.8 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.2524, allocations: 0.8064 MB / 467 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.2526, allocations: 106.6 kB / 467.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009126/0.2535, allocations: 0.8397 MB / 468 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006395/0.2542, allocations: 0.543 MB / 468.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000418/0.2546, allocations: 343.2 kB / 468.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005272/0.2551, allocations: 446.2 kB / 469.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000108/0.2553, allocations: 63.75 kB / 469.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001529/0.2568, allocations: 0.8949 MB / 470.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.2571, allocations: 355.8 kB / 470.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003727/0.2575, allocations: 430.2 kB / 471 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001669/0.2592, allocations: 1.431 MB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2592, allocations: 0 / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2592, allocations: 1.688 kB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2592, allocations: 0 / 472.5 MB, free: 12.7 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.002474/0.2617, allocations: 1.339 MB / 473.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2618, allocations: 8.875 kB / 473.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/0.2629, allocations: 187.3 kB / 474 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.264, allocations: 0.7439 MB / 474.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.2642, allocations: 176.6 kB / 474.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.582e-05/0.2643, allocations: 30.44 kB / 474.9 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.2662, allocations: 0.8393 MB / 475.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2662, allocations: 1.188 kB / 475.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.2662, allocations: 15.53 kB / 475.8 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.2663, allocations: 16.62 kB / 475.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002735/0.269, allocations: 0.9575 MB / 476.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002198/0.2712, allocations: 1.736 MB / 478.5 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.2724, allocations: 380.8 kB / 478.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001104/0.2735, allocations: 376.7 kB / 479.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.2735, allocations: 1.156 kB / 479.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001243/0.2748, allocations: 464.5 kB / 479.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.904e-06/0.2748, allocations: 3.938 kB / 479.7 MB, free: 9.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003535/0.2783, allocations: 1.123 MB / 480.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.2784, allocations: 164.2 kB / 481 MB, free: 8.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001418/0.2798, allocations: 1.054 MB / 482 MB, free: 7.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.2799, allocations: 31.95 kB / 482.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.2801, allocations: 369 kB / 482.4 MB, free: 7.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.524e-05/0.2802, allocations: 37.02 kB / 482.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.2803, allocations: 44.8 kB / 482.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.095e-05/0.2804, allocations: 311.2 kB / 482.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.2815, allocations: 369.9 kB / 483.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.2826, allocations: 449.8 kB / 483.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.2847, allocations: 0.6482 MB / 484.3 MB, free: 6.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.2847, allocations: 4 kB / 484.3 MB, free: 6.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.002375/0.2871, allocations: 0.8032 MB / 485.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.2871, allocations: 9.672 kB / 485.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.2871, allocations: 0.875 kB / 485.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.2871, allocations: 2.375 kB / 485.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006073/0.2877, allocations: 120.1 kB / 485.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.2878, allocations: 9.219 kB / 485.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009745/0.2887, allocations: 136.6 kB / 485.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.2888, allocations: 5.656 kB / 485.3 MB, free: 5.738 MB / 350.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.000551/0.2894, allocations: 313.3 kB / 485.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.2895, allocations: 77.2 kB / 485.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001751/0.2897, allocations: 74.86 kB / 485.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2897, allocations: 2.812 kB / 485.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.2897, allocations: 4.156 kB / 485.8 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.431e-06/0.2897, allocations: 3.984 kB / 485.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008679/0.2906, allocations: 0.6944 MB / 486.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2906, allocations: 5.375 kB / 486.5 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005795/0.2912, allocations: 113.8 kB / 486.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.2912, allocations: 0 / 486.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.2912, allocations: 10.73 kB / 486.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2912, allocations: 0 / 486.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2913, allocations: 9.312 kB / 486.6 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.2936, allocations: 0.8053 MB / 487.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.2937, allocations: 146.4 kB / 487.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.2938, allocations: 1.281 kB / 487.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.2946, allocations: 119 kB / 487.7 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.2948, allocations: 48.2 kB / 487.8 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.2949, allocations: 11.7 kB / 487.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001198/0.2961, allocations: 0.7749 MB / 488.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.002e-06/0.2961, allocations: 0 / 488.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00114/0.2973, allocations: 260.1 kB / 488.8 MB, free: 3.672 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 (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.001382/0.2986, allocations: 358.2 kB / 489.1 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002324/0.301, allocations: 0.7522 MB / 489.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.301, allocations: 1.438 kB / 489.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.3022, allocations: 401.8 kB / 490.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3032, allocations: 227.3 kB / 490.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.3057, allocations: 1.569 MB / 492.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.3062, allocations: 1.049 MB / 493.1 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004574/0.3066, allocations: 128.3 kB / 493.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3069, allocations: 43.42 kB / 493.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3069, allocations: 0 / 493.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Templates: time 0.02324/0.3301, allocations: 14.5 MB / 0.4959 GB, free: 1.477 MB / 366.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 -lv LOG_STATS > DeltaRobot_DeltaRobot.Tests.Switch2_test.pipe 2>&1)