Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.001894/0.001894, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 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.002201/0.002201, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 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.604/1.604, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 71.88 kB / 373.8 MB, free: 9.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1373, allocations: 53.32 MB / 427.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003322/0.1406, allocations: 1.5 MB / 428.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007911/0.1414, allocations: 279.2 kB / 428.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.1415, allocations: 4 kB / 428.9 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1416, allocations: 23.73 kB / 428.9 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-05/0.1417, allocations: 15.81 kB / 428.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004154/0.1421, allocations: 111.8 kB / 429 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003631/0.1425, allocations: 263.5 kB / 429.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003066/0.1428, allocations: 138.4 kB / 429.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.1429, allocations: 87.7 kB / 429.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1431, allocations: 99.58 kB / 429.6 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.1431, allocations: 24 kB / 429.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.944e-05/0.1432, allocations: 28 kB / 429.7 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.213e-05/0.1432, allocations: 51.84 kB / 429.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.1433, allocations: 95.52 kB / 429.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003557/0.1437, allocations: 243 kB / 430.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1437, allocations: 3.938 kB / 430.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1437, allocations: 0 / 430.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1437, allocations: 11.92 kB / 430.1 MB, free: 1.559 MB / 350.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.0008208/0.1445, allocations: 482.3 kB / 430.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.1446, allocations: 8.031 kB / 430.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002459/0.1448, allocations: 32.83 kB / 430.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.1452, allocations: 224.1 kB / 430.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.1452, allocations: 16.94 kB / 430.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.185e-05/0.1453, allocations: 28.38 kB / 430.8 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.1457, allocations: 240 kB / 431.1 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1457, allocations: 4.125 kB / 431.1 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.1457, allocations: 15.94 kB / 431.1 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1458, allocations: 4 kB / 431.1 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.1461, allocations: 153.7 kB / 431.3 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.1471, allocations: 0.6936 MB / 431.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.1475, allocations: 155.9 kB / 432.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.1476, allocations: 75.27 kB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.1476, allocations: 7.938 kB / 432.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/0.1478, allocations: 119.2 kB / 432.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 3.827e-06/0.1479, allocations: 3.984 kB / 432.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.000457/0.1483, allocations: 209.4 kB / 432.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.1484, allocations: 59.41 kB / 432.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.1485, allocations: 150 kB / 432.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.1485, allocations: 37.7 kB / 432.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1486, allocations: 128.8 kB / 432.9 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.152e-05/0.1487, allocations: 67.52 kB / 432.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.1488, allocations: 74.02 kB / 433 MB, free: 14.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.149, allocations: 326.8 kB / 433.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1491, allocations: 60.62 kB / 433.4 MB, free: 14.01 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.1493, allocations: 132.1 kB / 433.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.1496, allocations: 174.6 kB / 433.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1496, allocations: 0 / 433.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003835/0.1499, allocations: 245.3 kB / 433.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.15, allocations: 4 kB / 433.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.15, allocations: 0 / 433.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.15, allocations: 4.219 kB / 433.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.1501, allocations: 35.92 kB / 434 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.1501, allocations: 7.938 kB / 434 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.1502, allocations: 27.78 kB / 434 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.1503, allocations: 8 kB / 434 MB, free: 13.33 MB / 366.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.0001715/0.1504, allocations: 157.8 kB / 434.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.524e-05/0.1505, allocations: 11.89 kB / 434.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.1505, allocations: 16.84 kB / 434.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1505, allocations: 8 kB / 434.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.1505, allocations: 0 / 434.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1505, allocations: 3.984 kB / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007849/0.1513, allocations: 0.5537 MB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1513, allocations: 0 / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.468e-05/0.1514, allocations: 15.94 kB / 434.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1514, allocations: 0 / 434.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.1514, allocations: 11.98 kB / 434.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.1514, allocations: 3.938 kB / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1514, allocations: 0 / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003309/0.1517, allocations: 271.9 kB / 435.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.051e-05/0.1518, allocations: 89 kB / 435.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.1518, allocations: 11.98 kB / 435.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.153e-05/0.1519, allocations: 0 / 435.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.739e-05/0.152, allocations: 23.97 kB / 435.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.152, allocations: 11.94 kB / 435.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.962e-05/0.1521, allocations: 105.5 kB / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1521, allocations: 4 kB / 435.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.1524, allocations: 51.84 kB / 435.3 MB, free: 11.89 MB / 366.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: 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 0.0001303/0.1525, allocations: 107.4 kB / 435.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.1529, allocations: 163.8 kB / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1529, allocations: 4 kB / 435.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.153, allocations: 72.34 kB / 435.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002961/0.1533, allocations: 31.91 kB / 435.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006789/0.154, allocations: 311.4 kB / 436 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.1544, allocations: 0.7323 MB / 436.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.463e-05/0.1545, allocations: 21.95 kB / 436.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.019e-05/0.1546, allocations: 19.44 kB / 436.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1546, allocations: 3.938 kB / 436.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of Templates: time 0.005551/0.1601, allocations: 1.68 MB / 438.5 MB, free: 8.703 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.313056564889848]