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.0009284/0.0009284, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.0009022/0.0009022, allocations: 163.5 kB / 24.99 MB, free: 8.266 MB / 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 0.9794/0.9794, allocations: 177 MB / 205.2 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] 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.954e-06/1.954e-06, allocations: 0 / 272.9 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.497e-05, allocations: 6.312 kB / 273 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003669/0.003694, allocations: 1.716 MB / 274.7 MB, free: 76 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006014/0.004296, allocations: 299.1 kB / 275 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.187e-05/0.004388, allocations: 7.938 kB / 275 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.004511, allocations: 27.73 kB / 275 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.913e-05/0.004561, allocations: 23.73 kB / 275 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00344/0.008, allocations: 123.8 kB / 275.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.008333, allocations: 275.4 kB / 275.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.008616, allocations: 167.6 kB / 275.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.00877, allocations: 135.8 kB / 275.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.008907, allocations: 75.75 kB / 275.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.91e-05/0.008946, allocations: 28 kB / 275.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.566e-05/0.009012, allocations: 27.94 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.009079, allocations: 59.81 kB / 275.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.76e-05/0.009167, allocations: 75.8 kB / 276 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.009438, allocations: 179.3 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.00944, allocations: 0 / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.009441, allocations: 0 / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.009446, allocations: 0 / 276.1 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.0006432/0.01009, allocations: 0.5151 MB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.01013, allocations: 15.98 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/0.01037, allocations: 56.78 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.0106, allocations: 180.2 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.01064, allocations: 24.88 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.818e-05/0.01068, allocations: 28.38 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003433/0.01411, allocations: 248.7 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.01413, allocations: 192 / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.01415, allocations: 12.38 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.01416, allocations: 8.375 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.0144, allocations: 94.81 kB / 277.3 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.01548, allocations: 1.069 MB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002749/0.01576, allocations: 154.3 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.01586, allocations: 59.34 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.01588, allocations: 4 kB / 278.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.01607, allocations: 144.2 kB / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.01607, allocations: 0 / 278.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004084/0.01648, allocations: 194.6 kB / 278.9 MB, free: 11.6 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.01653, allocations: 81.11 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003161/0.01969, allocations: 217.9 kB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.01973, allocations: 41.69 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.01983, allocations: 187.5 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.01989, allocations: 59.48 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.01999, allocations: 87.33 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.02014, allocations: 0.4962 MB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.02024, allocations: 39.97 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.0204, allocations: 144.8 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.02065, allocations: 200.6 kB / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.02066, allocations: 0 / 280.5 MB, free: 9.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003593/0.02101, allocations: 233.5 kB / 280.7 MB, free: 9.68 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.02103, allocations: 6.656 kB / 280.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.02105, allocations: 11.92 kB / 280.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.02106, allocations: 4 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.0212, allocations: 31.92 kB / 280.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.02121, allocations: 4 kB / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.357e-05/0.02131, allocations: 27.84 kB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.011e-05/0.02133, allocations: 16 kB / 280.8 MB, free: 9.582 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.0001273/0.02145, allocations: 188.4 kB / 281 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.367e-05/0.02149, allocations: 31.91 kB / 281 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.02153, allocations: 20.94 kB / 281 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.02154, allocations: 4 kB / 281 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.02154, allocations: 0 / 281 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.02155, allocations: 3.984 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006059/0.02215, allocations: 0.5243 MB / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.02216, allocations: 0 / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.23e-05/0.02222, allocations: 15.98 kB / 281.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.02222, allocations: 4 kB / 281.6 MB, free: 8.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.02224, allocations: 7.938 kB / 281.6 MB, free: 8.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.02224, allocations: 4 kB / 281.6 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.02224, allocations: 4 kB / 281.6 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.02555, allocations: 328.1 kB / 281.9 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.95e-05/0.02557, allocations: 15.94 kB / 281.9 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.0256, allocations: 4 kB / 281.9 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.02568, allocations: 7.984 kB / 281.9 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.02576, allocations: 19.97 kB / 282 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.02577, allocations: 4 kB / 282 MB, free: 8.332 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.483e-05/0.02584, allocations: 142.4 kB / 282.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02584, allocations: 0 / 282.1 MB, free: 8.195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003191/0.02615, allocations: 59.78 kB / 282.2 MB, free: 8.137 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.0001114/0.02627, allocations: 115.1 kB / 282.3 MB, free: 8.012 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.02658, allocations: 156.4 kB / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.02658, allocations: 0 / 282.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.0267, allocations: 71.59 kB / 282.5 MB, free: 7.781 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.027, allocations: 32.48 kB / 282.5 MB, free: 7.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005643/0.02757, allocations: 330.5 kB / 282.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.982e-05/0.02764, allocations: 84.28 kB / 282.9 MB, free: 7.297 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.495e-05/0.02771, allocations: 21.94 kB / 282.9 MB, free: 7.273 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.02777, allocations: 24.5 kB / 283 MB, free: 7.246 MB / 266.7 MB Notification: Performance of SimCode: time 8.82e-07/0.02777, allocations: 0 / 283 MB, free: 7.246 MB / 266.7 MB Notification: Performance of Templates: time 0.01074/0.03852, allocations: 1.77 MB / 284.7 MB, free: 5.496 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","",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.718216633889824]