Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001992/0.001992, allocations: 99.53 kB / 20.96 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002077/0.002077, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 177 MB / 204.5 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.841e-05/2.976e-05, allocations: 6.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003148/0.003178, allocations: 1.674 MB / 273.8 MB, free: 152 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007718/0.00395, allocations: 303.1 kB / 274.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.373e-05/0.004033, allocations: 0 / 274.1 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.004172, allocations: 31.67 kB / 274.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.823e-05/0.004241, allocations: 15.81 kB / 274.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.004651, allocations: 131.7 kB / 274.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003743/0.005025, allocations: 275.5 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003131/0.005338, allocations: 159.7 kB / 274.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001901/0.005529, allocations: 143.7 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.005668, allocations: 67.78 kB / 274.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.29e-05/0.005731, allocations: 31.98 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.697e-05/0.005798, allocations: 27.98 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.624e-05/0.005874, allocations: 55.83 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.005974, allocations: 67.81 kB / 275.1 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003828/0.006357, allocations: 271 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.00636, allocations: 0 / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.006362, allocations: 0 / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.006368, allocations: 0 / 275.4 MB, free: 14.59 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.0008626/0.00723, allocations: 0.5265 MB / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.00727, allocations: 11.98 kB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.007517, allocations: 56.78 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.007818, allocations: 184.2 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.007861, allocations: 28.86 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.007908, allocations: 28.38 kB / 276.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.008488, allocations: 288 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.008501, allocations: 192 / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.008526, allocations: 8.375 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.008536, allocations: 8.375 kB / 276.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/0.008863, allocations: 165.7 kB / 276.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.01028, allocations: 1.115 MB / 277.8 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003507/0.01063, allocations: 194.3 kB / 278 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.01088, allocations: 75.36 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.01091, allocations: 4 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002773/0.01119, allocations: 158.5 kB / 278.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.01119, allocations: 0 / 278.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004985/0.01169, allocations: 233.2 kB / 278.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.155e-05/0.01177, allocations: 89.05 kB / 278.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.01199, allocations: 240.5 kB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.087e-05/0.01204, allocations: 41.7 kB / 278.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.01218, allocations: 191.5 kB / 279 MB, free: 10.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.669e-05/0.01226, allocations: 71.47 kB / 279.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/0.01241, allocations: 103.3 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002772/0.01269, allocations: 0.5118 MB / 279.7 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.01281, allocations: 55.98 kB / 279.7 MB, free: 9.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002647/0.01307, allocations: 172.8 kB / 279.9 MB, free: 9.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004152/0.01349, allocations: 232.8 kB / 280.1 MB, free: 9.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.01349, allocations: 0 / 280.1 MB, free: 9.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004372/0.01393, allocations: 269.4 kB / 280.4 MB, free: 9.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.01395, allocations: 8.062 kB / 280.4 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.01396, allocations: 4 kB / 280.4 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.01398, allocations: 4 kB / 280.4 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.01413, allocations: 35.92 kB / 280.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.01415, allocations: 11.92 kB / 280.5 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.01425, allocations: 23.84 kB / 280.5 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.01427, allocations: 16 kB / 280.5 MB, free: 9.129 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 0.0001866/0.01446, allocations: 200.4 kB / 280.7 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.039e-05/0.0145, allocations: 27.84 kB / 280.7 MB, free: 8.895 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.491e-05/0.01456, allocations: 24.94 kB / 280.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.01456, allocations: 0 / 280.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.01456, allocations: 4 kB / 280.7 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.01457, allocations: 3.984 kB / 280.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008038/0.01537, allocations: 0.5643 MB / 281.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01538, allocations: 0 / 281.3 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.61e-05/0.01545, allocations: 19.92 kB / 281.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.01545, allocations: 0 / 281.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.01547, allocations: 8 kB / 281.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.01547, allocations: 3.938 kB / 281.3 MB, free: 8.227 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01548, allocations: 4 kB / 281.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/0.01611, allocations: 355.3 kB / 281.7 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.132e-05/0.01613, allocations: 15.88 kB / 281.7 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.01616, allocations: 8 kB / 281.7 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.01625, allocations: 7.984 kB / 281.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.537e-05/0.01633, allocations: 19.97 kB / 281.7 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.01634, allocations: 4 kB / 281.7 MB, free: 7.797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001058/0.01645, allocations: 151.1 kB / 281.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01645, allocations: 0 / 281.9 MB, free: 7.648 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000292/0.01674, allocations: 51.84 kB / 281.9 MB, free: 7.598 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,step.active,transition1.enableFire,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.0001458/0.01688, allocations: 111.2 kB / 282.1 MB, free: 7.477 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003784/0.01726, allocations: 204.2 kB / 282.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01726, allocations: 0 / 282.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.01742, allocations: 87.59 kB / 282.3 MB, free: 7.184 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.0177, allocations: 23.98 kB / 282.4 MB, free: 7.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006724/0.01838, allocations: 355.2 kB / 282.7 MB, free: 6.785 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.01851, allocations: 129.2 kB / 282.8 MB, free: 6.641 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.736e-05/0.01859, allocations: 21.95 kB / 282.9 MB, free: 6.617 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.01866, allocations: 24.5 kB / 282.9 MB, free: 6.59 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01866, allocations: 0 / 282.9 MB, free: 6.59 MB / 266.7 MB Notification: Performance of Templates: time 0.005724/0.02438, allocations: 1.78 MB / 284.7 MB, free: 4.832 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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.363892450928688]