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.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.001783/0.001783, allocations: 106 kB / 21.18 MB, free: 0.707 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.002068/0.002068, allocations: 183.7 kB / 24.47 MB, free: 4.074 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.681/1.681, allocations: 207.6 MB / 235.2 MB, free: 10.02 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_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.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.001891/0.001891, allocations: 54.86 kB / 347.6 MB, free: 9.59 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3489, allocations: 49.16 MB / 396.8 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.0032/0.3521, allocations: 1.676 MB / 398.5 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007325/0.3528, allocations: 256.2 kB / 398.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.3529, allocations: 7.375 kB / 398.7 MB, free: 8.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3531, allocations: 27.53 kB / 398.7 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.497e-05/0.3531, allocations: 17.84 kB / 398.8 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.3535, allocations: 134 kB / 398.9 MB, free: 8.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.3539, allocations: 272.9 kB / 399.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.3542, allocations: 161.5 kB / 399.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.3543, allocations: 89.36 kB / 399.4 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.3545, allocations: 104.1 kB / 399.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.591e-05/0.3545, allocations: 23.56 kB / 399.5 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.372e-05/0.3546, allocations: 31.06 kB / 399.6 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.182e-05/0.3547, allocations: 58.86 kB / 399.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.3548, allocations: 106 kB / 399.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.3552, allocations: 254 kB / 400 MB, free: 7.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3552, allocations: 1.344 kB / 400 MB, free: 7.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3552, allocations: 0 / 400 MB, free: 7.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.3552, allocations: 0 / 400 MB, free: 7.543 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.0006244/0.3558, allocations: 417.7 kB / 400.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3558, allocations: 14.34 kB / 400.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.808e-05/0.3559, allocations: 24.73 kB / 400.4 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.3562, allocations: 184.5 kB / 400.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.3562, allocations: 20.69 kB / 400.6 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.3563, allocations: 28.02 kB / 400.6 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/0.3567, allocations: 273.4 kB / 400.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.3568, allocations: 5.578 kB / 400.9 MB, free: 6.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.3568, allocations: 14.84 kB / 400.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.3568, allocations: 6.5 kB / 400.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.3571, allocations: 168.7 kB / 401.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.3582, allocations: 0.9283 MB / 402 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002788/0.3584, allocations: 143.7 kB / 402.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.3585, allocations: 62.78 kB / 402.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.3586, allocations: 2.094 kB / 402.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.3588, allocations: 124.4 kB / 402.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.244e-06/0.3588, allocations: 4 kB / 402.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000424/0.3592, allocations: 207.7 kB / 402.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.3592, allocations: 58.72 kB / 402.6 MB, free: 5.668 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.882e-05/0.3593, allocations: 163.3 kB / 402.8 MB, free: 5.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.3594, allocations: 37.42 kB / 402.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.838e-05/0.3594, allocations: 142.5 kB / 403 MB, free: 5.371 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.954e-05/0.3595, allocations: 61.92 kB / 403 MB, free: 5.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3596, allocations: 77.75 kB / 403.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.203e-05/0.3597, allocations: 331.1 kB / 403.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.3598, allocations: 62.52 kB / 403.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.36, allocations: 136.1 kB / 403.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.3602, allocations: 185.7 kB / 403.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3602, allocations: 4 kB / 403.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000367/0.3606, allocations: 257.3 kB / 404 MB, free: 4.562 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.3606, allocations: 10.59 kB / 404.1 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.3606, allocations: 7.297 kB / 404.1 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.3607, allocations: 3.062 kB / 404.1 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3608, allocations: 36.12 kB / 404.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.3608, allocations: 4.469 kB / 404.1 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.3609, allocations: 33.62 kB / 404.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.361, allocations: 14.09 kB / 404.1 MB, free: 4.52 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.000123/0.3611, allocations: 168.1 kB / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.606e-05/0.3611, allocations: 13.41 kB / 404.3 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003193/0.3614, allocations: 188.7 kB / 404.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3614, allocations: 3.125 kB / 404.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3614, allocations: 0 / 404.5 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3614, allocations: 5.062 kB / 404.5 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000664/0.3621, allocations: 0.5592 MB / 405.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3621, allocations: 0.6562 kB / 405.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.955e-05/0.3622, allocations: 18.12 kB / 405.1 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.3622, allocations: 5 kB / 405.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.3622, allocations: 5.719 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.3622, allocations: 1.969 kB / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3622, allocations: 0 / 405.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002962/0.3625, allocations: 273.9 kB / 405.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.194e-05/0.3625, allocations: 21.97 kB / 405.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.3626, allocations: 10 kB / 405.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/0.3626, allocations: 12.55 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.17e-05/0.3627, allocations: 22.02 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.3627, allocations: 5.406 kB / 405.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.555e-05/0.3628, allocations: 109.3 kB / 405.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3628, allocations: 0 / 405.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.3631, allocations: 55.8 kB / 405.6 MB, free: 3.512 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.0001241/0.3632, allocations: 105.1 kB / 405.7 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000347/0.3636, allocations: 170.5 kB / 405.9 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3636, allocations: 0 / 405.9 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.3637, allocations: 70.59 kB / 405.9 MB, free: 3.348 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.364, allocations: 23.94 kB / 406 MB, free: 3.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005733/0.3646, allocations: 350.9 kB / 406.3 MB, free: 3.102 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001809/0.3648, allocations: 0.737 MB / 407 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.163e-05/0.3648, allocations: 25.61 kB / 407.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.027e-05/0.3649, allocations: 27.75 kB / 407.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3649, allocations: 0 / 407.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of Templates: time 0.006121/0.371, allocations: 2 MB / 409.1 MB, free: 2.059 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.0682360623031855]