Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001343/0.001343, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001304/0.001304, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 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.528/1.528, allocations: 225.6 MB / 252.5 MB, free: 13.01 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 51.91 kB / 370.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.302, allocations: 52.18 MB / 423.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003185/0.3052, allocations: 1.698 MB / 424.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007349/0.306, allocations: 291.1 kB / 425.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.3061, allocations: 7.938 kB / 425.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001615/0.3062, allocations: 31.67 kB / 425.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.938e-05/0.3063, allocations: 15.81 kB / 425.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.3067, allocations: 127.8 kB / 425.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003701/0.3071, allocations: 279.5 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003059/0.3074, allocations: 155.5 kB / 425.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.3075, allocations: 91.7 kB / 425.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.3077, allocations: 103.5 kB / 425.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.096e-05/0.3077, allocations: 24 kB / 425.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.697e-05/0.3078, allocations: 31.98 kB / 425.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.654e-05/0.3079, allocations: 67.81 kB / 426 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.308, allocations: 91.53 kB / 426.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.3084, allocations: 264.1 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3084, allocations: 8 kB / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3084, allocations: 0 / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3084, allocations: 3.938 kB / 426.3 MB, free: 11.44 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.0007246/0.3091, allocations: 433.1 kB / 426.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3091, allocations: 8.031 kB / 426.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.639e-05/0.3092, allocations: 24.8 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003134/0.3095, allocations: 174.3 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.3096, allocations: 20.88 kB / 427 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.3096, allocations: 24.38 kB / 427 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004982/0.3101, allocations: 281.7 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3101, allocations: 4.172 kB / 427.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.3101, allocations: 11.94 kB / 427.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3101, allocations: 8 kB / 427.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.3105, allocations: 165.6 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.3117, allocations: 0.9327 MB / 428.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.312, allocations: 153.4 kB / 428.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.3121, allocations: 80.66 kB / 428.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.3122, allocations: 7.938 kB / 428.6 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.3124, allocations: 144.5 kB / 428.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.904e-06/0.3124, allocations: 0 / 428.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005118/0.3129, allocations: 221.3 kB / 429 MB, free: 8.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.669e-05/0.313, allocations: 85.11 kB / 429.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.3131, allocations: 157.2 kB / 429.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.3132, allocations: 37.7 kB / 429.3 MB, free: 8.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.3133, allocations: 140.8 kB / 429.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.3134, allocations: 67.48 kB / 429.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.3135, allocations: 73.81 kB / 429.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.3137, allocations: 334.8 kB / 429.9 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.314, allocations: 63.97 kB / 429.9 MB, free: 7.605 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3141, allocations: 140.5 kB / 430.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003082/0.3145, allocations: 196.8 kB / 430.3 MB, free: 7.215 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3145, allocations: 4 kB / 430.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004125/0.3149, allocations: 257.3 kB / 430.5 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.3149, allocations: 4 kB / 430.5 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3149, allocations: 4 kB / 430.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3149, allocations: 8.219 kB / 430.5 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.3151, allocations: 39.86 kB / 430.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3151, allocations: 4 kB / 430.6 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.3152, allocations: 35.77 kB / 430.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.322e-05/0.3152, allocations: 12 kB / 430.6 MB, free: 6.848 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.0001865/0.3154, allocations: 165.7 kB / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.3154, allocations: 11.91 kB / 430.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003546/0.3158, allocations: 194.4 kB / 431 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3158, allocations: 8 kB / 431 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3158, allocations: 0 / 431 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.3158, allocations: 0 / 431 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000777/0.3166, allocations: 0.5665 MB / 431.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3166, allocations: 0 / 431.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.668e-05/0.3167, allocations: 19.98 kB / 431.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3167, allocations: 0 / 431.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.3167, allocations: 11.94 kB / 431.6 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3167, allocations: 3.938 kB / 431.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3167, allocations: 4 kB / 431.6 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.317, allocations: 288.5 kB / 431.9 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.347e-05/0.3171, allocations: 19.84 kB / 431.9 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.3171, allocations: 11.92 kB / 431.9 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.123e-05/0.3172, allocations: 8 kB / 431.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.3173, allocations: 23.95 kB / 431.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.3173, allocations: 16 kB / 432 MB, free: 5.418 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.486e-05/0.3173, allocations: 91.27 kB / 432.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3173, allocations: 4 kB / 432.1 MB, free: 5.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.3176, allocations: 55.89 kB / 432.1 MB, free: 5.27 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,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: 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.000153/0.3178, allocations: 110.9 kB / 432.2 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003295/0.3181, allocations: 168.3 kB / 432.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.3181, allocations: 8 kB / 432.4 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3183, allocations: 71.91 kB / 432.5 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000292/0.3186, allocations: 23.98 kB / 432.5 MB, free: 4.887 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006646/0.3192, allocations: 352.2 kB / 432.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.3196, allocations: 0.7402 MB / 433.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.355e-05/0.3197, allocations: 25.92 kB / 433.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.842e-05/0.3197, allocations: 23.44 kB / 433.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3197, allocations: 3.938 kB / 433.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of Templates: time 0.005914/0.3256, allocations: 2.041 MB / 435.7 MB, free: 1.66 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.825593094341457]