Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.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.001421/0.001421, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0017/0.0017, allocations: 165.8 kB / 24.82 MB, free: 9.266 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 1.04/1.04, allocations: 177.1 MB / 205.3 MB, free: 5.473 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 0 / 273.4 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.804e-05/3.018e-05, allocations: 2.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002051/0.002081, allocations: 1.512 MB / 274.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00055/0.002631, allocations: 283.1 kB / 275.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.198e-05/0.002713, allocations: 7.938 kB / 275.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.002829, allocations: 23.73 kB / 275.2 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.477e-05/0.002864, allocations: 15.81 kB / 275.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.003223, allocations: 123.7 kB / 275.3 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002318/0.003454, allocations: 275.4 kB / 275.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.003664, allocations: 130.8 kB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.003777, allocations: 135.8 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.003878, allocations: 67.77 kB / 275.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.003905, allocations: 24 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.501e-05/0.00396, allocations: 28 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.91e-05/0.004009, allocations: 51.81 kB / 276 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.004061, allocations: 67.81 kB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001986/0.00426, allocations: 187.2 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004262, allocations: 0 / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.004263, allocations: 0 / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.004266, allocations: 0 / 276.3 MB, free: 14.39 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004388/0.004705, allocations: 0.511 MB / 276.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.004739, allocations: 8.031 kB / 276.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.004909, allocations: 52.78 kB / 276.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.005067, allocations: 168.4 kB / 277 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.005091, allocations: 20.88 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.005113, allocations: 28.38 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.005312, allocations: 197.6 kB / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.00532, allocations: 192 / 277.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.005334, allocations: 8.375 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.005342, allocations: 8.375 kB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.976e-05/0.005422, allocations: 71.36 kB / 277.3 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.006465, allocations: 0.6466 MB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.006614, allocations: 119.3 kB / 278.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.21e-05/0.006656, allocations: 51.59 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.006675, allocations: 11.98 kB / 278.2 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.353e-05/0.006769, allocations: 95.44 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.283e-06/0.00677, allocations: 4 kB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002022/0.006972, allocations: 165.4 kB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.007002, allocations: 63.28 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.872e-05/0.00709, allocations: 205.7 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.007109, allocations: 37.7 kB / 278.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.007177, allocations: 179.5 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.007213, allocations: 67.44 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.007287, allocations: 87.55 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.007395, allocations: 0.5001 MB / 279.5 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.714e-05/0.007462, allocations: 32.62 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.04e-05/0.007532, allocations: 118.7 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001176/0.00765, allocations: 153.3 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.007653, allocations: 4 kB / 279.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001759/0.007829, allocations: 201.3 kB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.007842, allocations: 8 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.007846, allocations: 0 / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.007857, allocations: 4 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.892e-05/0.007936, allocations: 35.86 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.007939, allocations: 4 kB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.317e-05/0.007992, allocations: 23.84 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-06/0.008002, allocations: 8.219 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition1.condition,transition2.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 (39): * Single equations (assignments): 39 * 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.025e-05/0.008092, allocations: 200.4 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.008111, allocations: 19.91 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.008143, allocations: 20.94 kB / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.008145, allocations: 0 / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.00815, allocations: 7.938 kB / 280.4 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.008154, allocations: 3.984 kB / 280.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003642/0.008518, allocations: 457.8 kB / 280.8 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.00852, allocations: 3.938 kB / 280.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.008557, allocations: 23.98 kB / 280.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.00856, allocations: 3.938 kB / 280.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.008568, allocations: 8 kB / 280.8 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.00857, allocations: 0 / 280.8 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.008571, allocations: 0 / 280.8 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.008733, allocations: 296.2 kB / 281.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.008745, allocations: 15.89 kB / 281.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.008761, allocations: 11.94 kB / 281.2 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.216e-05/0.008803, allocations: 8 kB / 281.2 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.008845, allocations: 19.81 kB / 281.2 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.008853, allocations: 8 kB / 281.2 MB, free: 9.098 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.575e-05/0.008888, allocations: 135.2 kB / 281.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008888, allocations: 0 / 281.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000186/0.009074, allocations: 47.89 kB / 281.4 MB, free: 8.918 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 7.451e-05/0.009149, allocations: 107.1 kB / 281.5 MB, free: 8.805 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001487/0.009298, allocations: 127.5 kB / 281.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.009299, allocations: 0 / 281.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.611e-05/0.009365, allocations: 70.42 kB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.009555, allocations: 28.42 kB / 281.7 MB, free: 8.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003503/0.009906, allocations: 311 kB / 282 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.136e-05/0.009947, allocations: 75.98 kB / 282.1 MB, free: 8.152 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.922e-05/0.009996, allocations: 21.94 kB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.332e-05/0.01008, allocations: 106.2 kB / 282.2 MB, free: 8.023 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01008, allocations: 0 / 282.2 MB, free: 8.023 MB / 266.7 MB Notification: Performance of Templates: time 0.003408/0.01349, allocations: 1.871 MB / 284.1 MB, free: 6.184 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.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.8594365268945694]