Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 103.1 kB / 19.75 MB, free: 2.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 190.2 kB / 22.92 MB, free: 5.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 207.6 MB / 233.5 MB, free: 10.99 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 51.92 kB / 345.4 MB, free: 10.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.35, allocations: 49.12 MB / 394.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003691/0.3537, allocations: 1.702 MB / 396.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00084/0.3545, allocations: 261.1 kB / 396.4 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.3547, allocations: 8.594 kB / 396.5 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.3548, allocations: 25.23 kB / 396.5 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.764e-05/0.3549, allocations: 19.56 kB / 396.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.3555, allocations: 122.8 kB / 396.6 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004595/0.3559, allocations: 256.8 kB / 396.9 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004043/0.3563, allocations: 158.5 kB / 397 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.3565, allocations: 91.36 kB / 397.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.3567, allocations: 104.3 kB / 397.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.3567, allocations: 22.25 kB / 397.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.3568, allocations: 32.86 kB / 397.3 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.24e-05/0.3569, allocations: 56.31 kB / 397.3 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.3571, allocations: 100.8 kB / 397.4 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004914/0.3575, allocations: 248.8 kB / 397.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3576, allocations: 3.938 kB / 397.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3576, allocations: 0.7031 kB / 397.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.3576, allocations: 1.094 kB / 397.7 MB, free: 7.461 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007267/0.3583, allocations: 499.6 kB / 398.2 MB, free: 7.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3583, allocations: 13.16 kB / 398.2 MB, free: 7.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.646e-05/0.3584, allocations: 24.61 kB / 398.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.3588, allocations: 236 kB / 398.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.3588, allocations: 21 kB / 398.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.3589, allocations: 27.75 kB / 398.5 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005164/0.3594, allocations: 276.8 kB / 398.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3594, allocations: 192 / 398.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.3594, allocations: 16.14 kB / 398.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3594, allocations: 6.031 kB / 398.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003479/0.3598, allocations: 165.3 kB / 398.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.3611, allocations: 0.9581 MB / 399.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.3615, allocations: 141.2 kB / 400 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.3616, allocations: 63.55 kB / 400.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.3617, allocations: 13.23 kB / 400.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002679/0.3619, allocations: 119.7 kB / 400.2 MB, free: 5.555 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.3619, allocations: 0 / 400.2 MB, free: 5.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005298/0.3625, allocations: 214.9 kB / 400.4 MB, free: 5.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.3625, allocations: 55.31 kB / 400.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.3627, allocations: 151.9 kB / 400.6 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.3627, allocations: 39.91 kB / 400.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3628, allocations: 153.2 kB / 400.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.85e-05/0.3628, allocations: 56.47 kB / 400.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.363, allocations: 82.78 kB / 401 MB, free: 5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3631, allocations: 327.9 kB / 401.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.3632, allocations: 62.47 kB / 401.3 MB, free: 4.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.3635, allocations: 147 kB / 401.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.3637, allocations: 185.2 kB / 401.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3637, allocations: 1.531 kB / 401.7 MB, free: 4.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003892/0.3641, allocations: 248.5 kB / 401.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3641, allocations: 10.31 kB / 401.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.3641, allocations: 2.984 kB / 401.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.3642, allocations: 3.906 kB / 401.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.3643, allocations: 35.02 kB / 402 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.3643, allocations: 8.828 kB / 402 MB, free: 4.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.3645, allocations: 25.59 kB / 402 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.3645, allocations: 15.17 kB / 402 MB, free: 4.254 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001585/0.3647, allocations: 160.5 kB / 402.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.484e-05/0.3647, allocations: 14.3 kB / 402.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003646/0.3651, allocations: 196.8 kB / 402.4 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3651, allocations: 6.188 kB / 402.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3651, allocations: 1.562 kB / 402.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3651, allocations: 5.203 kB / 402.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007832/0.3659, allocations: 0.5886 MB / 403 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3659, allocations: 0 / 403 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.587e-05/0.3659, allocations: 13.05 kB / 403 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.3659, allocations: 6.562 kB / 403 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.366, allocations: 9.703 kB / 403 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.366, allocations: 1.688 kB / 403 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.366, allocations: 0 / 403 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.3663, allocations: 277.2 kB / 403.3 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.3663, allocations: 94.67 kB / 403.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.3664, allocations: 11.45 kB / 403.4 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.054e-05/0.3665, allocations: 7.984 kB / 403.4 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.587e-05/0.3666, allocations: 20.92 kB / 403.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.3666, allocations: 10.72 kB / 403.4 MB, free: 3.223 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.5e-05/0.3666, allocations: 97.05 kB / 403.5 MB, free: 3.145 MB / 318.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3666, allocations: 0 / 403.5 MB, free: 3.145 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.367, allocations: 51.2 kB / 403.6 MB, free: 3.129 MB / 318.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: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001716/0.3672, allocations: 113.5 kB / 403.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003883/0.3676, allocations: 178 kB / 403.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3676, allocations: 4.062 kB / 403.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001357/0.3677, allocations: 73.05 kB / 403.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.3681, allocations: 18.22 kB / 403.9 MB, free: 2.938 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006855/0.3687, allocations: 338.9 kB / 404.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.369, allocations: 0.7394 MB / 405 MB, free: 2.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.3691, allocations: 24.41 kB / 405 MB, free: 2.008 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.029e-05/0.3692, allocations: 22.86 kB / 405.1 MB, free: 2 MB / 318.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3692, allocations: 7.938 kB / 405.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of Templates: time 0.007708/0.3769, allocations: 1.93 MB / 407 MB, free: 1.801 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.009461090900004]