Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001722/0.001722, allocations: 114.9 kB / 19.04 MB, free: 3.281 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.001898/0.001898, allocations: 190 kB / 22.21 MB, free: 112 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.641/1.641, allocations: 225.6 MB / 250.8 MB, free: 13.4 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 47.92 kB / 368.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3053, allocations: 52.14 MB / 420.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003529/0.3089, allocations: 1.724 MB / 422.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009602/0.3098, allocations: 295.1 kB / 422.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.31, allocations: 3.938 kB / 422.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.3101, allocations: 23.73 kB / 422.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.979e-05/0.3102, allocations: 23.69 kB / 422.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.3107, allocations: 119.8 kB / 423 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004051/0.3111, allocations: 275.4 kB / 423.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003779/0.3115, allocations: 141.6 kB / 423.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.3117, allocations: 91.7 kB / 423.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.3119, allocations: 103.5 kB / 423.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.556e-05/0.3119, allocations: 27.94 kB / 423.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.928e-05/0.312, allocations: 28 kB / 423.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.282e-05/0.3121, allocations: 59.89 kB / 423.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.3122, allocations: 99.45 kB / 423.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004488/0.3127, allocations: 264.2 kB / 424.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3127, allocations: 0 / 424.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3127, allocations: 0 / 424.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.3127, allocations: 0 / 424.1 MB, free: 11.89 MB / 334.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.0008928/0.3136, allocations: 494.4 kB / 424.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.3136, allocations: 19.83 kB / 424.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.528e-05/0.3137, allocations: 24.8 kB / 424.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004283/0.3141, allocations: 236.1 kB / 424.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.4e-05/0.3142, allocations: 20.94 kB / 424.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.3142, allocations: 28.38 kB / 424.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005/0.3147, allocations: 278.5 kB / 425.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.3147, allocations: 192 / 425.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.3148, allocations: 15.94 kB / 425.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.3148, allocations: 8 kB / 425.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003099/0.3151, allocations: 165.6 kB / 425.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.3164, allocations: 0.9674 MB / 426.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/0.3167, allocations: 157.5 kB / 426.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3168, allocations: 73.62 kB / 426.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.3168, allocations: 0 / 426.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.3171, allocations: 145 kB / 426.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.3171, allocations: 0 / 426.7 MB, free: 9.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000499/0.3176, allocations: 216.9 kB / 426.9 MB, free: 8.859 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.3176, allocations: 93.03 kB / 427 MB, free: 8.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.3178, allocations: 145.7 kB / 427.1 MB, free: 8.598 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.3178, allocations: 41.69 kB / 427.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.318, allocations: 148.8 kB / 427.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.403e-05/0.318, allocations: 59.53 kB / 427.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.3182, allocations: 81.67 kB / 427.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.3183, allocations: 330.8 kB / 427.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.3185, allocations: 63.97 kB / 427.8 MB, free: 7.863 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3187, allocations: 144.5 kB / 428 MB, free: 7.691 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003205/0.319, allocations: 200.8 kB / 428.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.319, allocations: 0 / 428.2 MB, free: 7.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004253/0.3194, allocations: 253.5 kB / 428.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.81e-05/0.3194, allocations: 15.78 kB / 428.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3195, allocations: 0 / 428.4 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.661e-05/0.3195, allocations: 4 kB / 428.4 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.3196, allocations: 35.91 kB / 428.5 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.3197, allocations: 4 kB / 428.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.3198, allocations: 31.78 kB / 428.5 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.3198, allocations: 8 kB / 428.5 MB, free: 7.117 MB / 334.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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001887/0.32, allocations: 173.6 kB / 428.7 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.32, allocations: 15.91 kB / 428.7 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003821/0.3204, allocations: 198.3 kB / 428.9 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3204, allocations: 4 kB / 428.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3204, allocations: 0 / 428.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3204, allocations: 0 / 428.9 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007965/0.3212, allocations: 0.587 MB / 429.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3212, allocations: 0 / 429.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.63e-05/0.3213, allocations: 19.92 kB / 429.5 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3213, allocations: 4 kB / 429.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.3213, allocations: 11.94 kB / 429.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3213, allocations: 0 / 429.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3213, allocations: 0 / 429.5 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.3217, allocations: 287.9 kB / 429.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.3217, allocations: 97 kB / 429.9 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.422e-05/0.3218, allocations: 11.92 kB / 429.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.311e-05/0.3219, allocations: 12 kB / 429.9 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.581e-05/0.3219, allocations: 19.97 kB / 429.9 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.322, allocations: 8 kB / 429.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.806e-05/0.322, allocations: 97.77 kB / 430 MB, free: 5.473 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.322, allocations: 0 / 430 MB, free: 5.473 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.3224, allocations: 55.84 kB / 430.1 MB, free: 5.418 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001989/0.3225, allocations: 123.1 kB / 430.2 MB, free: 5.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003709/0.3229, allocations: 176.1 kB / 430.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3229, allocations: 0 / 430.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.3231, allocations: 84.38 kB / 430.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.3234, allocations: 23.98 kB / 430.5 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007439/0.3241, allocations: 356.5 kB / 430.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004135/0.3245, allocations: 0.7408 MB / 431.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.176e-05/0.3246, allocations: 29.92 kB / 431.6 MB, free: 3.832 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.3247, allocations: 19.44 kB / 431.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of SimCode: time 1.011e-06/0.3247, allocations: 0 / 431.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of Templates: time 0.005779/0.3305, allocations: 1.954 MB / 433.6 MB, free: 1.867 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.044144746847451]