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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008028/0.0008029, allocations: 104.4 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009992/0.0009992, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.521/1.521, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003156, allocations: 8 kB / 307.1 MB, free: 0.9883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1413, allocations: 51.53 MB / 358.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002153/0.1436, allocations: 1.39 MB / 360 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007048/0.1443, allocations: 311.1 kB / 360.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.1444, allocations: 0 / 360.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.1446, allocations: 23.8 kB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.606e-05/0.1446, allocations: 11.92 kB / 360.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.145, allocations: 83.89 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003124/0.1453, allocations: 243.5 kB / 360.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.1456, allocations: 145.6 kB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.1457, allocations: 67.72 kB / 360.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001305/0.1459, allocations: 79.59 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.1459, allocations: 8 kB / 361 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.558e-05/0.146, allocations: 16 kB / 361 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.448e-05/0.1461, allocations: 47.77 kB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.195e-05/0.1461, allocations: 61.58 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.1463, allocations: 155.6 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.1464, allocations: 4 kB / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1464, allocations: 0 / 361.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.1464, allocations: 0 / 361.2 MB, free: 10.82 MB / 302.1 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.000696/0.1471, allocations: 450.8 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.1471, allocations: 8.031 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.1474, allocations: 35.7 kB / 361.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.1477, allocations: 222.8 kB / 361.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/0.1477, allocations: 24.56 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.1478, allocations: 28 kB / 362 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004552/0.1482, allocations: 269.9 kB / 362.2 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.1482, allocations: 7.938 kB / 362.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.566e-05/0.1483, allocations: 7.984 kB / 362.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1483, allocations: 12 kB / 362.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.1486, allocations: 161.6 kB / 362.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.1497, allocations: 0.9674 MB / 363.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002736/0.15, allocations: 166 kB / 363.6 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000128/0.1501, allocations: 89.98 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.1502, allocations: 4.188 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.1504, allocations: 140.7 kB / 363.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1505, allocations: 4 kB / 363.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004495/0.1509, allocations: 225.1 kB / 364 MB, free: 7.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.151, allocations: 81.11 kB / 364.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.1511, allocations: 153.6 kB / 364.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.1512, allocations: 45.69 kB / 364.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.1513, allocations: 140.5 kB / 364.4 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.528e-05/0.1514, allocations: 55.2 kB / 364.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.337e-05/0.1514, allocations: 16.12 kB / 364.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1515, allocations: 326.8 kB / 364.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.1516, allocations: 63.75 kB / 364.9 MB, free: 6.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.1518, allocations: 136.5 kB / 365 MB, free: 6.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.1519, allocations: 68 kB / 365.1 MB, free: 6.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.1519, allocations: 4 kB / 365.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003563/0.1523, allocations: 253.8 kB / 365.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1523, allocations: 6.969 kB / 365.3 MB, free: 6.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1523, allocations: 4 kB / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.1524, allocations: 4 kB / 365.3 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1525, allocations: 39.88 kB / 365.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.1525, allocations: 4 kB / 365.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.291e-05/0.1526, allocations: 27.77 kB / 365.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.1527, allocations: 23.92 kB / 365.4 MB, free: 6.305 MB / 302.1 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.1528, allocations: 158.6 kB / 365.6 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.818e-05/0.1529, allocations: 19.8 kB / 365.6 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.972e-05/0.1529, allocations: 12.84 kB / 365.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1529, allocations: 4 kB / 365.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.1529, allocations: 3.953 kB / 365.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1529, allocations: 0 / 365.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006894/0.1536, allocations: 0.5904 MB / 366.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1537, allocations: 0 / 366.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.208e-05/0.1537, allocations: 16 kB / 366.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1537, allocations: 0 / 366.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.1538, allocations: 0 / 366.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.1538, allocations: 7.984 kB / 366.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1538, allocations: 0 / 366.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.1541, allocations: 276.1 kB / 366.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.1542, allocations: 96.81 kB / 366.6 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.1542, allocations: 11.98 kB / 366.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-05/0.1543, allocations: 8 kB / 366.6 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.1544, allocations: 27.89 kB / 366.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.1544, allocations: 8 kB / 366.7 MB, free: 4.969 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.363e-05/0.1545, allocations: 97.78 kB / 366.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1545, allocations: 0 / 366.8 MB, free: 4.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002843/0.1548, allocations: 55.84 kB / 366.8 MB, free: 4.82 MB / 302.1 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000125/0.1549, allocations: 107.2 kB / 366.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003007/0.1552, allocations: 175.7 kB / 367.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1552, allocations: 0 / 367.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.1553, allocations: 83.84 kB / 367.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003016/0.1557, allocations: 20.62 kB / 367.2 MB, free: 4.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006102/0.1563, allocations: 392.9 kB / 367.6 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.1566, allocations: 0.7407 MB / 368.3 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.972e-05/0.1567, allocations: 21.94 kB / 368.3 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.179e-05/0.1567, allocations: 19.44 kB / 368.4 MB, free: 3.215 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1567, allocations: 4 kB / 368.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of Templates: time 0.004467/0.1612, allocations: 1.501 MB / 369.9 MB, free: 1.719 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches