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.0009927/0.0009927, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001038/0.001038, allocations: 169.9 kB / 24.91 MB, free: 8.723 MB / 18.57 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 0.9858/0.9858, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.7 MB " [Timeout remaining time 179] 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 1.713e-06/1.713e-06, allocations: 0 / 273.5 MB, free: 1.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.725e-05/2.897e-05, allocations: 2.312 kB / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003721/0.00375, allocations: 1.789 MB / 275.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008724/0.004622, allocations: 306.9 kB / 275.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.004757, allocations: 4 kB / 275.6 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001614/0.004919, allocations: 23.67 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.266e-05/0.004991, allocations: 19.8 kB / 275.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005445/0.005536, allocations: 123.7 kB / 275.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005009/0.006037, allocations: 283.4 kB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004007/0.006437, allocations: 156 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.006599, allocations: 131.8 kB / 276.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.006752, allocations: 75.77 kB / 276.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.006791, allocations: 20 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.776e-05/0.006879, allocations: 31.98 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.528e-05/0.006944, allocations: 51.83 kB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.985e-05/0.007024, allocations: 71.81 kB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.007324, allocations: 187.2 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.007327, allocations: 4 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.007329, allocations: 4 kB / 276.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.007333, allocations: 0 / 276.7 MB, free: 13.9 MB / 266.7 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.0005012/0.007834, allocations: 391.8 kB / 277.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.007873, allocations: 8.031 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.00813, allocations: 56.88 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.008359, allocations: 149.5 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.008395, allocations: 24.88 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.008427, allocations: 28.38 kB / 277.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.00873, allocations: 218.6 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.008746, allocations: 4.125 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.879e-05/0.008764, allocations: 8.375 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.008776, allocations: 8.375 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.008906, allocations: 75.33 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008695/0.009775, allocations: 0.7231 MB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.009976, allocations: 113.2 kB / 278.5 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.143e-05/0.01004, allocations: 45.69 kB / 278.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.01006, allocations: 4 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/0.01021, allocations: 124.2 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.084e-06/0.01022, allocations: 0 / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002473/0.01046, allocations: 145.3 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.01052, allocations: 81.11 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.01063, allocations: 158.5 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.01066, allocations: 37.7 kB / 279.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.402e-05/0.01074, allocations: 140.8 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.868e-05/0.01079, allocations: 63.5 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.991e-05/0.01088, allocations: 81.42 kB / 279.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.01098, allocations: 330.8 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.125e-05/0.01103, allocations: 28.11 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/0.01113, allocations: 108.5 kB / 279.8 MB, free: 10.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.01131, allocations: 156.4 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.01131, allocations: 4 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002369/0.01155, allocations: 165.3 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.01157, allocations: 11.94 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.01157, allocations: 4 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.01159, allocations: 4 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.01174, allocations: 39.92 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.01174, allocations: 8.266 kB / 280.2 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.449e-05/0.01183, allocations: 31.78 kB / 280.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.01185, allocations: 12 kB / 280.2 MB, free: 10.09 MB / 266.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001163/0.01196, allocations: 133.8 kB / 280.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.01199, allocations: 19.92 kB / 280.4 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.01203, allocations: 20.88 kB / 280.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.01204, allocations: 7.984 kB / 280.4 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.01204, allocations: 0 / 280.4 MB, free: 9.906 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.01205, allocations: 4 kB / 280.4 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004627/0.01251, allocations: 371.9 kB / 280.8 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01251, allocations: 4 kB / 280.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.25e-05/0.01257, allocations: 19.98 kB / 280.8 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.01258, allocations: 0 / 280.8 MB, free: 9.488 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.01259, allocations: 7.984 kB / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.01259, allocations: 4 kB / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.0126, allocations: 0 / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.01278, allocations: 220.1 kB / 281 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.775e-05/0.01279, allocations: 15.84 kB / 281.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.01281, allocations: 7.938 kB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.222e-05/0.01289, allocations: 11.98 kB / 281.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.931e-05/0.01295, allocations: 19.97 kB / 281.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.01296, allocations: 4 kB / 281.1 MB, free: 9.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.908e-05/0.01298, allocations: 28.58 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01298, allocations: 0 / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002929/0.01328, allocations: 47.89 kB / 281.2 MB, free: 9.109 MB / 266.7 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.0001064/0.01338, allocations: 84.36 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002202/0.0136, allocations: 132.9 kB / 281.4 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.8e-06/0.01361, allocations: 4.125 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.465e-05/0.01369, allocations: 60.72 kB / 281.4 MB, free: 8.824 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.01393, allocations: 27.92 kB / 281.5 MB, free: 8.797 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000496/0.01442, allocations: 322.2 kB / 281.8 MB, free: 8.453 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.789e-05/0.01448, allocations: 84.27 kB / 281.9 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.038e-05/0.01456, allocations: 22.02 kB / 281.9 MB, free: 8.324 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.01467, allocations: 79.36 kB / 282 MB, free: 8.246 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01467, allocations: 0 / 282 MB, free: 8.246 MB / 266.7 MB Notification: Performance of Templates: time 0.004704/0.01937, allocations: 1.88 MB / 283.8 MB, free: 6.398 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.666405063122511]