Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 145.2 kB / 25.59 MB, free: 8.918 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.963/0.963, allocations: 173.4 MB / 202.2 MB, free: 8.277 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.92e-07/9.92e-07, allocations: 0 / 269.2 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.314e-05/1.413e-05, allocations: 5.266 kB / 269.2 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001952/0.001966, allocations: 1.711 MB / 270.9 MB, free: 8.102 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005783/0.002544, allocations: 291.8 kB / 271.2 MB, free: 7.816 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.689e-05/0.002631, allocations: 7.938 kB / 271.2 MB, free: 7.809 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.002777, allocations: 28.2 kB / 271.2 MB, free: 7.781 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.283e-05/0.00283, allocations: 20.47 kB / 271.2 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.003161, allocations: 128.4 kB / 271.3 MB, free: 7.637 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.003381, allocations: 284.9 kB / 271.6 MB, free: 7.359 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.003577, allocations: 150.1 kB / 271.8 MB, free: 7.207 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.003693, allocations: 145.5 kB / 271.9 MB, free: 7.066 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.098e-05/0.003784, allocations: 75.7 kB / 272 MB, free: 6.992 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/0.003812, allocations: 24 kB / 272 MB, free: 6.969 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.9e-05/0.003871, allocations: 31.98 kB / 272 MB, free: 6.938 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.403e-05/0.003915, allocations: 57.84 kB / 272.1 MB, free: 6.883 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.935e-05/0.003974, allocations: 67.83 kB / 272.2 MB, free: 6.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.004261, allocations: 183.3 kB / 272.3 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.004262, allocations: 4 kB / 272.3 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.004263, allocations: 0 / 272.3 MB, free: 6.633 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.004267, allocations: 0 / 272.3 MB, free: 6.633 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.0005812/0.004848, allocations: 0.5159 MB / 272.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.004883, allocations: 15.97 kB / 272.9 MB, free: 6.066 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.331e-05/0.004966, allocations: 50.77 kB / 272.9 MB, free: 6.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.005152, allocations: 164.4 kB / 273.1 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.00518, allocations: 20.88 kB / 273.1 MB, free: 5.812 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.005204, allocations: 28.38 kB / 273.1 MB, free: 5.785 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.005439, allocations: 240.6 kB / 273.4 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.00545, allocations: 1.469 kB / 273.4 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.005466, allocations: 8.375 kB / 273.4 MB, free: 5.516 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.005475, allocations: 4.375 kB / 273.4 MB, free: 5.512 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.005633, allocations: 88.52 kB / 273.5 MB, free: 5.43 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007358/0.006368, allocations: 1.055 MB / 274.5 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.006541, allocations: 134.4 kB / 274.7 MB, free: 4.168 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.837e-05/0.00659, allocations: 51.34 kB / 274.7 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.006604, allocations: 8 kB / 274.7 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001188/0.006722, allocations: 136.8 kB / 274.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.293e-06/0.006724, allocations: 0.5 kB / 274.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002193/0.006943, allocations: 184.2 kB / 275 MB, free: 3.762 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.006979, allocations: 85.09 kB / 275.1 MB, free: 3.66 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.307e-05/0.007073, allocations: 217.7 kB / 275.3 MB, free: 3.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.007093, allocations: 33.7 kB / 275.4 MB, free: 3.391 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.191e-05/0.007165, allocations: 191.5 kB / 275.5 MB, free: 3.195 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.55e-05/0.007201, allocations: 63.48 kB / 275.6 MB, free: 3.133 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.279e-05/0.007273, allocations: 83.3 kB / 275.7 MB, free: 3.043 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.007387, allocations: 0.4962 MB / 276.2 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.055e-05/0.007427, allocations: 39.73 kB / 276.2 MB, free: 2.496 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.407e-05/0.007512, allocations: 144.5 kB / 276.4 MB, free: 2.312 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.007641, allocations: 172.8 kB / 276.5 MB, free: 2.102 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.007643, allocations: 3.938 kB / 276.5 MB, free: 2.098 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001943/0.007837, allocations: 225.8 kB / 276.8 MB, free: 1.871 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.00785, allocations: 7.938 kB / 276.8 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.007855, allocations: 4 kB / 276.8 MB, free: 1.859 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.178e-06/0.007864, allocations: 4 kB / 276.8 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.102e-05/0.007945, allocations: 31.92 kB / 276.8 MB, free: 1.824 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.00795, allocations: 4 kB / 276.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.949e-05/0.008009, allocations: 31.81 kB / 276.8 MB, free: 1.789 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.008024, allocations: 8 kB / 276.8 MB, free: 1.781 MB / 250.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.111e-05/0.008115, allocations: 192.8 kB / 277 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.008138, allocations: 27.84 kB / 277.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001627/0.008301, allocations: 164.4 kB / 277.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.008305, allocations: 4 kB / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.008307, allocations: 0 / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.008311, allocations: 4 kB / 277.2 MB, free: 1.383 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003811/0.008692, allocations: 0.4949 MB / 277.7 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.008694, allocations: 0 / 277.7 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.754e-05/0.008731, allocations: 19.92 kB / 277.7 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.008734, allocations: 4 kB / 277.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.008744, allocations: 8 kB / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.008745, allocations: 0 / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.008746, allocations: 0 / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.008916, allocations: 315.3 kB / 278.1 MB, free: 500 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.15e-05/0.008928, allocations: 15.84 kB / 278.1 MB, free: 484 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.008945, allocations: 11.98 kB / 278.1 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.532e-05/0.008991, allocations: 8 kB / 278.1 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.094e-05/0.009032, allocations: 23.95 kB / 278.1 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.00904, allocations: 4 kB / 278.1 MB, free: 436 kB / 250.7 MB Notification: Performance of sorting global known variables: time 3.808e-05/0.009078, allocations: 142.8 kB / 278.3 MB, free: 296 kB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009078, allocations: 3.938 kB / 278.3 MB, free: 292 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001958/0.009274, allocations: 51.89 kB / 278.3 MB, free: 240 kB / 250.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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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 9.211e-05/0.009366, allocations: 107 kB / 278.4 MB, free: 124 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.009537, allocations: 152.3 kB / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.009538, allocations: 0 / 278.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.337e-05/0.009602, allocations: 65.19 kB / 278.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.009789, allocations: 42.78 kB / 278.7 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.01013, allocations: 343.5 kB / 279 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.347e-05/0.01017, allocations: 80.27 kB / 279.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.266e-05/0.01022, allocations: 29.94 kB / 279.1 MB, free: 15.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.387e-05/0.01031, allocations: 110.2 kB / 279.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01031, allocations: 0 / 279.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Templates: time 0.003691/0.014, allocations: 2.184 MB / 281.4 MB, free: 13.11 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.736850048881024]