Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001639/0.001639, allocations: 83.16 kB / 21.44 MB, free: 272 kB / 14.72 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.002161/0.002161, allocations: 160.2 kB / 24.7 MB, free: 3.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.435/1.435, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 298.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.607e-05/2.762e-05, allocations: 2.281 kB / 298.9 MB, free: 8.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002458/0.002485, allocations: 1.442 MB / 300.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006557/0.003141, allocations: 255.2 kB / 300.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.195e-05/0.003223, allocations: 11.94 kB / 300.6 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.003342, allocations: 23.73 kB / 300.6 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.175e-05/0.003393, allocations: 15.81 kB / 300.7 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003994/0.003793, allocations: 127.6 kB / 300.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.004123, allocations: 263.5 kB / 301 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.004373, allocations: 142.6 kB / 301.2 MB, free: 6.473 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.004524, allocations: 131.8 kB / 301.3 MB, free: 6.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.004641, allocations: 71.78 kB / 301.4 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.004682, allocations: 24 kB / 301.4 MB, free: 6.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.362e-05/0.004756, allocations: 27.98 kB / 301.4 MB, free: 6.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.145e-05/0.004827, allocations: 59.81 kB / 301.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.647e-05/0.004904, allocations: 63.83 kB / 301.6 MB, free: 6.102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.005219, allocations: 255.1 kB / 301.8 MB, free: 5.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.005222, allocations: 0 / 301.8 MB, free: 5.852 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.005222, allocations: 4 kB / 301.8 MB, free: 5.848 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.005232, allocations: 0 / 301.8 MB, free: 5.848 MB / 286.1 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.0006607/0.005892, allocations: 409.1 kB / 302.2 MB, free: 5.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.005927, allocations: 15.98 kB / 302.2 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.907e-05/0.005986, allocations: 20.84 kB / 302.2 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002914/0.006277, allocations: 169.5 kB / 302.4 MB, free: 5.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.006305, allocations: 16.88 kB / 302.4 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/0.006349, allocations: 32.36 kB / 302.5 MB, free: 5.141 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.006753, allocations: 235.3 kB / 302.7 MB, free: 4.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.006767, allocations: 8.172 kB / 302.7 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.53e-05/0.006792, allocations: 8.375 kB / 302.7 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.006803, allocations: 16.3 kB / 302.7 MB, free: 4.867 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002932/0.007096, allocations: 157.8 kB / 302.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008558/0.007952, allocations: 0.5778 MB / 303.4 MB, free: 4.098 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.008237, allocations: 150.8 kB / 303.6 MB, free: 3.941 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.008351, allocations: 68.83 kB / 303.7 MB, free: 3.871 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.573e-05/0.008367, allocations: 4 kB / 303.7 MB, free: 3.867 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.008551, allocations: 119.3 kB / 303.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.008552, allocations: 0 / 303.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004476/0.009, allocations: 229.1 kB / 304 MB, free: 3.508 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.009042, allocations: 55.41 kB / 304.1 MB, free: 3.441 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.009218, allocations: 150 kB / 304.2 MB, free: 3.285 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.009253, allocations: 41.7 kB / 304.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.009391, allocations: 132.8 kB / 304.4 MB, free: 3.102 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.009454, allocations: 71.47 kB / 304.4 MB, free: 3.031 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.009556, allocations: 70.02 kB / 304.5 MB, free: 2.953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.009723, allocations: 326.8 kB / 304.8 MB, free: 2.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.009842, allocations: 60.62 kB / 304.9 MB, free: 2.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.01002, allocations: 128.1 kB / 305 MB, free: 2.418 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/0.01028, allocations: 174.7 kB / 305.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01028, allocations: 0 / 305.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003832/0.01067, allocations: 245.3 kB / 305.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.01068, allocations: 4 kB / 305.4 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.483e-06/0.01068, allocations: 4 kB / 305.4 MB, free: 1.969 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.0107, allocations: 8.156 kB / 305.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.01084, allocations: 35.92 kB / 305.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.01085, allocations: 0 / 305.5 MB, free: 1.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.718e-05/0.01095, allocations: 27.83 kB / 305.5 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.01098, allocations: 16 kB / 305.5 MB, free: 1.883 MB / 286.1 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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * 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 0.0001648/0.01114, allocations: 153.8 kB / 305.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.01117, allocations: 19.84 kB / 305.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.01153, allocations: 198.4 kB / 305.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.01154, allocations: 7.938 kB / 305.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.01154, allocations: 0 / 305.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.01155, allocations: 7.984 kB / 305.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007141/0.01226, allocations: 481.8 kB / 306.4 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01226, allocations: 0 / 306.4 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.734e-05/0.01234, allocations: 15.94 kB / 306.4 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.01234, allocations: 4 kB / 306.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.01236, allocations: 7.984 kB / 306.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.01236, allocations: 0 / 306.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.01236, allocations: 4 kB / 306.4 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003413/0.0127, allocations: 287.7 kB / 306.7 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.927e-05/0.01272, allocations: 15.84 kB / 306.7 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.01275, allocations: 8 kB / 306.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.768e-05/0.01284, allocations: 7.984 kB / 306.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.002e-05/0.01292, allocations: 19.97 kB / 306.7 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.01294, allocations: 12 kB / 306.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.574e-05/0.013, allocations: 95.77 kB / 306.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of sort global known variables: time 7e-08/0.013, allocations: 0 / 306.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.0133, allocations: 51.89 kB / 306.9 MB, free: 460 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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 0.0001702/0.01347, allocations: 111.2 kB / 307 MB, free: 336 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003215/0.01379, allocations: 175.7 kB / 307.2 MB, free: 160 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.01379, allocations: 4 kB / 307.2 MB, free: 156 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.01393, allocations: 71.91 kB / 307.2 MB, free: 84 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.01421, allocations: 27.91 kB / 307.3 MB, free: 56 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006298/0.01484, allocations: 327.6 kB / 307.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.01497, allocations: 132.8 kB / 307.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.813e-05/0.01504, allocations: 25.94 kB / 307.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.15e-05/0.0151, allocations: 20.5 kB / 307.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.0151, allocations: 0 / 307.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Templates: time 0.005638/0.02074, allocations: 1.935 MB / 309.7 MB, free: 13.59 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.3916426077485085]