Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 103.6 kB / 21.18 MB, free: 328 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 214.9 kB / 24.47 MB, free: 3.551 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.672/1.672, allocations: 207.7 MB / 235.3 MB, free: 9.781 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 58.58 kB / 347.7 MB, free: 9.418 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3521, allocations: 49.16 MB / 396.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003051/0.3552, allocations: 1.628 MB / 398.5 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006867/0.3558, allocations: 262.5 kB / 398.7 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.356, allocations: 7.688 kB / 398.7 MB, free: 8.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.3561, allocations: 25.69 kB / 398.7 MB, free: 8.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.109e-05/0.3562, allocations: 25.98 kB / 398.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.3568, allocations: 119.4 kB / 398.9 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000449/0.3572, allocations: 277.2 kB / 399.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003848/0.3576, allocations: 156.9 kB / 399.3 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001269/0.3577, allocations: 93.2 kB / 399.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.3579, allocations: 88.03 kB / 399.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.956e-05/0.3579, allocations: 26.97 kB / 399.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.358, allocations: 34.97 kB / 399.5 MB, free: 7.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.649e-05/0.3581, allocations: 59.11 kB / 399.6 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.3582, allocations: 82.84 kB / 399.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.3586, allocations: 256.4 kB / 399.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3586, allocations: 0 / 399.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3586, allocations: 0 / 399.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.3586, allocations: 1.188 kB / 399.9 MB, free: 7.512 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.0006664/0.3593, allocations: 418.5 kB / 400.3 MB, free: 7.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3593, allocations: 13.77 kB / 400.4 MB, free: 7.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.947e-05/0.3594, allocations: 33.44 kB / 400.4 MB, free: 7.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.3597, allocations: 175.5 kB / 400.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/0.3597, allocations: 22.03 kB / 400.6 MB, free: 6.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.3598, allocations: 26.88 kB / 400.6 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.3603, allocations: 271.9 kB / 400.9 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3603, allocations: 4.125 kB / 400.9 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.3603, allocations: 15 kB / 400.9 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.3603, allocations: 6.406 kB / 400.9 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003195/0.3606, allocations: 164.4 kB / 401.1 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.3616, allocations: 0.8361 MB / 401.9 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002838/0.3619, allocations: 136.5 kB / 402 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.3621, allocations: 69.33 kB / 402.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3621, allocations: 6.688 kB / 402.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.3623, allocations: 130.5 kB / 402.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.3623, allocations: 1.188 kB / 402.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000444/0.3627, allocations: 206.9 kB / 402.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.3628, allocations: 59.38 kB / 402.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.3629, allocations: 162.2 kB / 402.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.3629, allocations: 35.33 kB / 402.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.977e-05/0.363, allocations: 154 kB / 402.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.3631, allocations: 61.17 kB / 402.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.3632, allocations: 78.52 kB / 403 MB, free: 5.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.343e-05/0.3633, allocations: 332.1 kB / 403.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.3634, allocations: 63.12 kB / 403.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.3636, allocations: 136.6 kB / 403.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.3639, allocations: 184.3 kB / 403.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.3639, allocations: 0 / 403.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003755/0.3642, allocations: 257.6 kB / 403.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3643, allocations: 7 kB / 403.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3643, allocations: 5.344 kB / 403.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.3643, allocations: 4.531 kB / 403.9 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3644, allocations: 32.31 kB / 404 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.3644, allocations: 7.078 kB / 404 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.327e-05/0.3645, allocations: 30.75 kB / 404 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.3646, allocations: 10.34 kB / 404 MB, free: 4.562 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.0001403/0.3647, allocations: 158.4 kB / 404.2 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.3647, allocations: 9.734 kB / 404.2 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003424/0.3651, allocations: 194.3 kB / 404.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3651, allocations: 10.69 kB / 404.4 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3651, allocations: 0 / 404.4 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.3651, allocations: 7.047 kB / 404.4 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006837/0.3658, allocations: 0.504 MB / 404.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3658, allocations: 1.094 kB / 404.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.48e-05/0.3659, allocations: 17.12 kB / 404.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3659, allocations: 1.375 kB / 404.9 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.3659, allocations: 7.391 kB / 404.9 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3659, allocations: 5.312 kB / 404.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3659, allocations: 0 / 404.9 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003294/0.3662, allocations: 279.9 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.178e-05/0.3663, allocations: 21.25 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.622e-05/0.3663, allocations: 3 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.3664, allocations: 17.67 kB / 405.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.99e-05/0.3665, allocations: 21.7 kB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.3665, allocations: 5.578 kB / 405.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.012e-05/0.3665, allocations: 101.5 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3665, allocations: 0 / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000321/0.3669, allocations: 50.17 kB / 405.4 MB, free: 3.605 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,step.active,transition1.enableFire,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.0001712/0.367, allocations: 118.4 kB / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003912/0.3674, allocations: 166.2 kB / 405.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3674, allocations: 0 / 405.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00014/0.3676, allocations: 74.92 kB / 405.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.3679, allocations: 28.05 kB / 405.8 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007291/0.3686, allocations: 339.1 kB / 406.1 MB, free: 3.191 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/0.3688, allocations: 132.8 kB / 406.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.3689, allocations: 24.81 kB / 406.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-05/0.369, allocations: 22.59 kB / 406.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.369, allocations: 0 / 406.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of Templates: time 0.008242/0.3772, allocations: 2.014 MB / 408.3 MB, free: 2.715 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.039228346198797]