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.001335/0.001335, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.00135/0.00135, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.465/1.465, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001593/0.001593, allocations: 51.92 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2725, allocations: 52.19 MB / 423 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002929/0.2755, allocations: 1.682 MB / 424.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007278/0.2762, allocations: 295.1 kB / 425 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.441e-05/0.2763, allocations: 4 kB / 425 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001412/0.2764, allocations: 27.67 kB / 425 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.74e-05/0.2765, allocations: 15.8 kB / 425.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.2769, allocations: 127.8 kB / 425.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003459/0.2773, allocations: 271.5 kB / 425.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003384/0.2776, allocations: 142 kB / 425.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000116/0.2777, allocations: 95.7 kB / 425.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.2779, allocations: 87.53 kB / 425.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-05/0.2779, allocations: 24 kB / 425.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.502e-05/0.278, allocations: 28 kB / 425.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.571e-05/0.2781, allocations: 63.75 kB / 425.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2782, allocations: 83.59 kB / 426 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003918/0.2786, allocations: 261.1 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2786, allocations: 0 / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2786, allocations: 8 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.2786, allocations: 0 / 426.2 MB, free: 11.29 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.0008197/0.2795, allocations: 421.2 kB / 426.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.2795, allocations: 12.03 kB / 426.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.324e-05/0.2796, allocations: 28.78 kB / 426.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.2799, allocations: 166.2 kB / 426.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.28, allocations: 20.88 kB / 426.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.709e-05/0.28, allocations: 32.38 kB / 426.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.2806, allocations: 269.7 kB / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2806, allocations: 4.188 kB / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.2806, allocations: 15.94 kB / 427.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.2806, allocations: 8 kB / 427.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003654/0.281, allocations: 169.5 kB / 427.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.2823, allocations: 0.8318 MB / 428.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003346/0.2827, allocations: 161.4 kB / 428.3 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.2828, allocations: 73.61 kB / 428.4 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.2828, allocations: 4 kB / 428.4 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/0.2831, allocations: 137 kB / 428.5 MB, free: 8.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.2831, allocations: 4 kB / 428.6 MB, free: 8.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005694/0.2836, allocations: 223 kB / 428.8 MB, free: 8.566 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.2837, allocations: 81.11 kB / 428.8 MB, free: 8.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.2839, allocations: 153.7 kB / 429 MB, free: 8.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.2839, allocations: 41.7 kB / 429 MB, free: 8.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.2841, allocations: 148.7 kB / 429.2 MB, free: 8.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.055e-05/0.2841, allocations: 59.48 kB / 429.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2842, allocations: 81.62 kB / 429.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.2844, allocations: 330.8 kB / 429.6 MB, free: 7.633 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.2845, allocations: 64.09 kB / 429.7 MB, free: 7.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002944/0.2848, allocations: 140.5 kB / 429.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.2852, allocations: 192.2 kB / 430 MB, free: 7.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2852, allocations: 0 / 430 MB, free: 7.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004273/0.2856, allocations: 265.8 kB / 430.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.2856, allocations: 10.19 kB / 430.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2856, allocations: 4 kB / 430.3 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.2856, allocations: 4 kB / 430.3 MB, free: 6.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2858, allocations: 27.92 kB / 430.3 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.2858, allocations: 7.984 kB / 430.3 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.2859, allocations: 36.11 kB / 430.4 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.874e-05/0.286, allocations: 23.94 kB / 430.4 MB, free: 6.809 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.0002035/0.2862, allocations: 161.6 kB / 430.6 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.823e-05/0.2862, allocations: 15.91 kB / 430.6 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003774/0.2866, allocations: 194.4 kB / 430.8 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2866, allocations: 4 kB / 430.8 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2866, allocations: 0 / 430.8 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.2866, allocations: 3.984 kB / 430.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007976/0.2874, allocations: 0.5046 MB / 431.3 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2874, allocations: 4 kB / 431.3 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.492e-05/0.2875, allocations: 15.94 kB / 431.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.2875, allocations: 4 kB / 431.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.2875, allocations: 7.984 kB / 431.3 MB, free: 5.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.2875, allocations: 4 kB / 431.3 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2875, allocations: 3.938 kB / 431.3 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.2879, allocations: 292.4 kB / 431.6 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.2879, allocations: 19.83 kB / 431.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.2879, allocations: 8 kB / 431.6 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.772e-05/0.288, allocations: 7.984 kB / 431.6 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.346e-05/0.2881, allocations: 27.91 kB / 431.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.2882, allocations: 12 kB / 431.7 MB, free: 5.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.686e-05/0.2882, allocations: 97.58 kB / 431.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2882, allocations: 0 / 431.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.2886, allocations: 55.88 kB / 431.8 MB, free: 5.305 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.0001758/0.2888, allocations: 107 kB / 431.9 MB, free: 5.191 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003835/0.2891, allocations: 180.2 kB / 432.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2891, allocations: 0 / 432.1 MB, free: 5.016 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.2893, allocations: 75.92 kB / 432.2 MB, free: 4.941 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.2896, allocations: 23.98 kB / 432.2 MB, free: 4.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007816/0.2904, allocations: 352.2 kB / 432.6 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.2906, allocations: 133.3 kB / 432.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.53e-05/0.2907, allocations: 21.94 kB / 432.7 MB, free: 4.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.933e-05/0.2907, allocations: 23.44 kB / 432.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2907, allocations: 0 / 432.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of Templates: time 0.006584/0.2973, allocations: 2.02 MB / 434.7 MB, free: 2.367 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: 4.64063567109406]