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.001057/0.001057, allocations: 73.98 kB / 22.21 MB, free: 2.297 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.001026/0.001026, allocations: 165.1 kB / 25.61 MB, free: 8.902 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.9706/0.9706, allocations: 177.2 MB / 206.1 MB, free: 4.508 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.463e-06/1.463e-06, allocations: 0 / 274.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.303e-05/1.449e-05, allocations: 5.266 kB / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002041/0.002055, allocations: 1.715 MB / 275.9 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005188/0.002574, allocations: 295.9 kB / 276.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.191e-05/0.002666, allocations: 7.938 kB / 276.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.002789, allocations: 24.73 kB / 276.2 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.761e-05/0.002837, allocations: 27.73 kB / 276.2 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.003151, allocations: 121.2 kB / 276.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002377/0.003389, allocations: 279.4 kB / 276.6 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.003604, allocations: 158.8 kB / 276.8 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.003714, allocations: 149.5 kB / 276.9 MB, free: 1.688 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.864e-05/0.003813, allocations: 71.77 kB / 277 MB, free: 1.617 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.003838, allocations: 24 kB / 277 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.079e-05/0.003889, allocations: 24 kB / 277 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.003938, allocations: 59.81 kB / 277.1 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.206e-05/0.00399, allocations: 68.47 kB / 277.2 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001967/0.004187, allocations: 183.3 kB / 277.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.004188, allocations: 4 kB / 277.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004189, allocations: 0 / 277.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.004194, allocations: 0 / 277.3 MB, free: 1.262 MB / 250.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.0004692/0.004663, allocations: 0.5228 MB / 277.9 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.004693, allocations: 8.031 kB / 277.9 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.004863, allocations: 52.78 kB / 277.9 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.005027, allocations: 168.3 kB / 278.1 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.005053, allocations: 24.88 kB / 278.1 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.005077, allocations: 32.36 kB / 278.1 MB, free: 404 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.005288, allocations: 236.7 kB / 278.4 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.005299, allocations: 4.188 kB / 278.4 MB, free: 132 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.005314, allocations: 8.375 kB / 278.4 MB, free: 124 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.005322, allocations: 8.375 kB / 278.4 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.324e-05/0.005416, allocations: 79.3 kB / 278.5 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007012/0.006117, allocations: 1.03 MB / 279.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.006272, allocations: 138.4 kB / 279.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.473e-05/0.006316, allocations: 51.36 kB / 279.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.006331, allocations: 11.94 kB / 279.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001228/0.006454, allocations: 135.3 kB / 279.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.006455, allocations: 3.984 kB / 279.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002192/0.006675, allocations: 177.3 kB / 280 MB, free: 14.39 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.006715, allocations: 81.11 kB / 280.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.992e-05/0.006815, allocations: 217.7 kB / 280.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.006837, allocations: 33.7 kB / 280.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.374e-05/0.00692, allocations: 195.4 kB / 280.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.006957, allocations: 59.56 kB / 280.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.021e-05/0.007027, allocations: 91.36 kB / 280.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.007149, allocations: 0.504 MB / 281.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.413e-05/0.007184, allocations: 23.98 kB / 281.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.414e-05/0.007268, allocations: 140.5 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.007407, allocations: 180.5 kB / 281.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.007409, allocations: 0 / 281.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001846/0.007593, allocations: 213.8 kB / 281.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.007606, allocations: 9.969 kB / 281.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.007611, allocations: 4 kB / 281.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.007622, allocations: 4 kB / 281.7 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.067e-05/0.007702, allocations: 32.2 kB / 281.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.007708, allocations: 8 kB / 281.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.61e-05/0.007764, allocations: 35.77 kB / 281.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.007774, allocations: 8 kB / 281.8 MB, free: 12.42 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 9.226e-05/0.007866, allocations: 184.5 kB / 282 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/0.007886, allocations: 23.89 kB / 282 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.007914, allocations: 16.88 kB / 282 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.00792, allocations: 7.984 kB / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.007921, allocations: 0 / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.007925, allocations: 0 / 282.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.008287, allocations: 499.8 kB / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.008289, allocations: 4 kB / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.33e-05/0.008323, allocations: 11.98 kB / 282.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.008325, allocations: 4 kB / 282.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.008333, allocations: 4 kB / 282.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.008336, allocations: 8 kB / 282.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.008338, allocations: 3.984 kB / 282.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.008512, allocations: 319.1 kB / 282.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.3e-05/0.008525, allocations: 19.84 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.008541, allocations: 4 kB / 282.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.09e-05/0.008582, allocations: 11.98 kB / 282.9 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.008625, allocations: 19.97 kB / 282.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.008632, allocations: 4 kB / 282.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.307e-05/0.008675, allocations: 142.8 kB / 283.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008675, allocations: 0 / 283.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001767/0.008852, allocations: 47.89 kB / 283.1 MB, free: 11.05 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 8.182e-05/0.008934, allocations: 115.1 kB / 283.2 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.009096, allocations: 144 kB / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-06/0.009097, allocations: 0 / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-05/0.009159, allocations: 66.38 kB / 283.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.009352, allocations: 27.83 kB / 283.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003391/0.009691, allocations: 326.8 kB / 283.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.73e-05/0.009738, allocations: 84.27 kB / 283.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.991e-05/0.009788, allocations: 26.25 kB / 283.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.14e-05/0.009869, allocations: 102.2 kB / 284 MB, free: 10.11 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.00987, allocations: 0 / 284 MB, free: 10.11 MB / 266.7 MB Notification: Performance of Templates: time 0.003658/0.01353, allocations: 1.948 MB / 286 MB, free: 8.195 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 -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.8455984476022422]