Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001431/0.001431, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 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.001596/0.001596, allocations: 214.7 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.616/1.616, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 51.91 kB / 378.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3249, allocations: 53.36 MB / 431.6 MB, free: 6.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003235/0.3281, allocations: 1.722 MB / 433.3 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007487/0.3289, allocations: 299.1 kB / 433.6 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.329, allocations: 7.938 kB / 433.6 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.3291, allocations: 23.73 kB / 433.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.012e-05/0.3292, allocations: 27.67 kB / 433.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.3296, allocations: 123.8 kB / 433.8 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.33, allocations: 275.4 kB / 434.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003446/0.3304, allocations: 157.9 kB / 434.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.3305, allocations: 95.7 kB / 434.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.3307, allocations: 103.5 kB / 434.4 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.3307, allocations: 20 kB / 434.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.273e-05/0.3308, allocations: 35.98 kB / 434.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.572e-05/0.3309, allocations: 59.83 kB / 434.5 MB, free: 4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001158/0.331, allocations: 95.52 kB / 434.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.3313, allocations: 260.2 kB / 434.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3314, allocations: 0 / 434.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.891e-06/0.3314, allocations: 4 kB / 434.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.3314, allocations: 4 kB / 434.9 MB, free: 3.648 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.0007342/0.3321, allocations: 417.2 kB / 435.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3321, allocations: 12.03 kB / 435.3 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.3324, allocations: 36.77 kB / 435.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.3327, allocations: 170.2 kB / 435.5 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.3328, allocations: 24.88 kB / 435.5 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.3328, allocations: 28.38 kB / 435.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.3333, allocations: 273.7 kB / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3333, allocations: 192 / 435.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.3333, allocations: 11.94 kB / 435.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.3334, allocations: 4 kB / 435.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003196/0.3337, allocations: 165.6 kB / 436 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.335, allocations: 0.9171 MB / 436.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.3353, allocations: 167.5 kB / 437.1 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.3354, allocations: 69.64 kB / 437.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.3354, allocations: 0 / 437.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3356, allocations: 144.4 kB / 437.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.3356, allocations: 4 kB / 437.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004578/0.3361, allocations: 221.3 kB / 437.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.842e-05/0.3361, allocations: 81.11 kB / 437.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.3363, allocations: 156 kB / 437.7 MB, free: 0.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.3363, allocations: 41.7 kB / 437.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.3364, allocations: 140.7 kB / 437.9 MB, free: 400 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.828e-05/0.3365, allocations: 67.44 kB / 438 MB, free: 332 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.3366, allocations: 81.47 kB / 438.1 MB, free: 244 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3368, allocations: 338.8 kB / 438.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.3369, allocations: 63.97 kB / 438.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.3371, allocations: 132.5 kB / 438.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.3373, allocations: 204.8 kB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3373, allocations: 0 / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003811/0.3377, allocations: 249.3 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3377, allocations: 7.984 kB / 439 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.3377, allocations: 4 kB / 439 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.3378, allocations: 7.984 kB / 439 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.3379, allocations: 32.2 kB / 439.1 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.3379, allocations: 11.94 kB / 439.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.338, allocations: 27.84 kB / 439.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.3381, allocations: 12 kB / 439.1 MB, free: 15.09 MB / 350.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.0001546/0.3382, allocations: 161.7 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.3382, allocations: 11.91 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.205e-05/0.3383, allocations: 20.94 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3383, allocations: 0 / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.3383, allocations: 7.984 kB / 439.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3383, allocations: 4 kB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007073/0.339, allocations: 0.5407 MB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.339, allocations: 0 / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.246e-05/0.3391, allocations: 19.94 kB / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3391, allocations: 0 / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3391, allocations: 0 / 439.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.098e-05/0.3391, allocations: 11.92 kB / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3391, allocations: 0 / 439.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003297/0.3394, allocations: 275 kB / 440.2 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.829e-05/0.3395, allocations: 11.89 kB / 440.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.3395, allocations: 11.98 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.515e-05/0.3396, allocations: 11.94 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.306e-05/0.3397, allocations: 19.97 kB / 440.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.3397, allocations: 7.984 kB / 440.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.483e-05/0.3397, allocations: 109.6 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3397, allocations: 0 / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.34, allocations: 51.78 kB / 440.4 MB, free: 13.75 MB / 350.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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0001259/0.3402, allocations: 107.2 kB / 440.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003413/0.3405, allocations: 167.7 kB / 440.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3405, allocations: 0 / 440.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.3407, allocations: 76.33 kB / 440.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.341, allocations: 27.98 kB / 440.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006878/0.3416, allocations: 336.4 kB / 441.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.3421, allocations: 0.7326 MB / 441.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.44e-05/0.3422, allocations: 21.94 kB / 441.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.738e-05/0.3423, allocations: 19.44 kB / 441.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3423, allocations: 0 / 441.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of Templates: time 0.005623/0.3479, allocations: 1.815 MB / 443.7 MB, free: 10.4 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.742203490808606]