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.001276/0.001276, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.00162/0.00162, allocations: 161 kB / 24.56 MB, free: 20 kB / 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 1.008/1.008, allocations: 177.1 MB / 205 MB, free: 5.293 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.953e-06/1.953e-06, allocations: 0 / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.339e-05/3.535e-05, allocations: 4.984 kB / 272.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002276/0.002311, allocations: 1.76 MB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006131/0.002924, allocations: 299.1 kB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.003028, allocations: 4 kB / 275 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.003167, allocations: 27.67 kB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.128e-05/0.003218, allocations: 23.78 kB / 275 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003774/0.003596, allocations: 123.7 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.003838, allocations: 275.4 kB / 275.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002465/0.004084, allocations: 162.1 kB / 275.6 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.004201, allocations: 139.7 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.004322, allocations: 67.78 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.004355, allocations: 24 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.358e-05/0.004428, allocations: 27.98 kB / 275.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.363e-05/0.004492, allocations: 59.81 kB / 275.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.004562, allocations: 71.81 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.004879, allocations: 183.2 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.004881, allocations: 7.938 kB / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.004883, allocations: 0 / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.004891, allocations: 0 / 276.2 MB, free: 14.19 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.0007982/0.005689, allocations: 0.5112 MB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.00574, allocations: 8.031 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002809/0.006021, allocations: 60.77 kB / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.006273, allocations: 172.3 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.006309, allocations: 20.88 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.006346, allocations: 28.38 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003648/0.006711, allocations: 240.8 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.006727, allocations: 4.188 kB / 277.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.006753, allocations: 16.31 kB / 277.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.006769, allocations: 8.375 kB / 277.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002138/0.006983, allocations: 106.8 kB / 277.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.008042, allocations: 1.057 MB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.008277, allocations: 154.3 kB / 278.5 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.668e-05/0.008344, allocations: 59.39 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.008363, allocations: 4 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/0.008508, allocations: 142.7 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.122e-06/0.008509, allocations: 0 / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003393/0.008848, allocations: 190.2 kB / 278.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.008916, allocations: 93.03 kB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.009072, allocations: 213.5 kB / 279.2 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.009103, allocations: 41.7 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.009212, allocations: 187.5 kB / 279.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.009261, allocations: 55.58 kB / 279.5 MB, free: 10.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.504e-05/0.009356, allocations: 95.28 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.00948, allocations: 0.4924 MB / 280.1 MB, free: 9.996 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.209e-05/0.009542, allocations: 43.97 kB / 280.1 MB, free: 9.953 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.009652, allocations: 152.8 kB / 280.3 MB, free: 9.762 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.009819, allocations: 184.6 kB / 280.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.009822, allocations: 4 kB / 280.5 MB, free: 9.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002273/0.01005, allocations: 237.2 kB / 280.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.01006, allocations: 4 kB / 280.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01007, allocations: 4 kB / 280.7 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.01009, allocations: 4 kB / 280.7 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.386e-05/0.01018, allocations: 35.92 kB / 280.7 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.01019, allocations: 8.219 kB / 280.7 MB, free: 9.242 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.531e-05/0.01025, allocations: 31.78 kB / 280.8 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.01026, allocations: 16 kB / 280.8 MB, free: 9.195 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,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 8.959e-05/0.01035, allocations: 184.5 kB / 281 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.01037, allocations: 23.89 kB / 281 MB, free: 8.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.067e-05/0.0104, allocations: 20.94 kB / 281 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-06/0.0104, allocations: 4 kB / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.01041, allocations: 0 / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.01041, allocations: 3.984 kB / 281 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004159/0.01083, allocations: 0.5226 MB / 281.5 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.01083, allocations: 0 / 281.5 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.734e-05/0.01087, allocations: 23.86 kB / 281.6 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.01087, allocations: 4 kB / 281.6 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.01088, allocations: 4 kB / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.01088, allocations: 0 / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.01088, allocations: 4 kB / 281.6 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.01107, allocations: 327.3 kB / 281.9 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.267e-05/0.01108, allocations: 19.84 kB / 281.9 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.0111, allocations: 0 / 281.9 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.281e-05/0.01114, allocations: 11.98 kB / 281.9 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.775e-05/0.0112, allocations: 27.91 kB / 282 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.326e-06/0.01121, allocations: 4 kB / 282 MB, free: 7.949 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.487e-05/0.01126, allocations: 139.2 kB / 282.1 MB, free: 7.812 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01126, allocations: 0 / 282.1 MB, free: 7.812 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001784/0.01143, allocations: 47.89 kB / 282.1 MB, free: 7.766 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.444e-05/0.01152, allocations: 107.2 kB / 282.2 MB, free: 7.648 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.01172, allocations: 160.8 kB / 282.4 MB, free: 7.488 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01172, allocations: 4.125 kB / 282.4 MB, free: 7.484 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.283e-05/0.0118, allocations: 74.03 kB / 282.5 MB, free: 7.41 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.01202, allocations: 23.98 kB / 282.5 MB, free: 7.387 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004413/0.01246, allocations: 334.8 kB / 282.8 MB, free: 7.027 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.822e-05/0.01251, allocations: 80.27 kB / 282.9 MB, free: 6.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.87e-05/0.01256, allocations: 26 kB / 282.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.01261, allocations: 32.44 kB / 283 MB, free: 6.871 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.01261, allocations: 0 / 283 MB, free: 6.871 MB / 266.7 MB Notification: Performance of Templates: time 0.003571/0.01618, allocations: 1.737 MB / 284.7 MB, free: 5.164 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: 3.0870838570408523]