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.001141/0.001141, allocations: 100.8 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001439/0.001439, allocations: 202.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.675/1.675, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002974, allocations: 8 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1439, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001953/0.1459, allocations: 1.374 MB / 359.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007109/0.1467, allocations: 307.1 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1468, allocations: 4 kB / 359.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.147, allocations: 23.8 kB / 359.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.266e-05/0.147, allocations: 11.97 kB / 359.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000399/0.1474, allocations: 91.83 kB / 359.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002617/0.1477, allocations: 167.6 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/0.148, allocations: 153.6 kB / 360.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.82e-05/0.1481, allocations: 67.77 kB / 360.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.1483, allocations: 79.61 kB / 360.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.1483, allocations: 8 kB / 360.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.426e-05/0.1484, allocations: 19.98 kB / 360.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.403e-05/0.1485, allocations: 39.84 kB / 360.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.803e-05/0.1485, allocations: 57.58 kB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002768/0.1488, allocations: 163.6 kB / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1488, allocations: 0 / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.1489, allocations: 0 / 360.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.1489, allocations: 0 / 360.6 MB, free: 11.37 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.0007582/0.1496, allocations: 458.4 kB / 361 MB, free: 10.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1497, allocations: 16.03 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.953e-05/0.1498, allocations: 19.81 kB / 361.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.1501, allocations: 230.7 kB / 361.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.1501, allocations: 20.56 kB / 361.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.1502, allocations: 31.89 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.1507, allocations: 274 kB / 361.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.1507, allocations: 4 kB / 361.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.1507, allocations: 8 kB / 361.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1507, allocations: 8 kB / 361.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.1511, allocations: 165.6 kB / 361.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.1524, allocations: 0.9752 MB / 362.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002931/0.1527, allocations: 173 kB / 362.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.1527, allocations: 8.125 kB / 363 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.153, allocations: 136.7 kB / 363.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.924e-06/0.153, allocations: 0 / 363.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004453/0.1534, allocations: 229.1 kB / 363.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.443e-05/0.1535, allocations: 85.09 kB / 363.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1537, allocations: 155.9 kB / 363.5 MB, free: 8.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.435e-05/0.1537, allocations: 41.69 kB / 363.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1538, allocations: 140.5 kB / 363.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.139e-05/0.1539, allocations: 59.27 kB / 363.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/0.1539, allocations: 12.06 kB / 363.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1541, allocations: 326.8 kB / 364.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.1542, allocations: 63.97 kB / 364.2 MB, free: 7.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.1544, allocations: 144.3 kB / 364.3 MB, free: 7.352 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.1545, allocations: 68 kB / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1545, allocations: 0 / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003955/0.1549, allocations: 261.8 kB / 364.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.155, allocations: 4 kB / 364.6 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.155, allocations: 4 kB / 364.6 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.155, allocations: 7.953 kB / 364.7 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.1551, allocations: 31.92 kB / 364.7 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1552, allocations: 4 kB / 364.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1553, allocations: 35.67 kB / 364.7 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.1553, allocations: 12 kB / 364.7 MB, free: 6.926 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.0001856/0.1555, allocations: 167.3 kB / 364.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.1555, allocations: 19.75 kB / 364.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003462/0.1559, allocations: 187.5 kB / 365.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1559, allocations: 0 / 365.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.1559, allocations: 7.953 kB / 365.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.1559, allocations: 3.984 kB / 365.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008205/0.1568, allocations: 0.5922 MB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.1568, allocations: 0 / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.883e-05/0.1569, allocations: 23.89 kB / 365.7 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1569, allocations: 4 kB / 365.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.1569, allocations: 11.92 kB / 365.7 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1569, allocations: 0 / 365.7 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1569, allocations: 4 kB / 365.7 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.1572, allocations: 293.8 kB / 366 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.646e-05/0.1573, allocations: 88.95 kB / 366.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.1573, allocations: 8 kB / 366.1 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.859e-05/0.1574, allocations: 11.98 kB / 366.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.1575, allocations: 27.91 kB / 366.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1576, allocations: 4 kB / 366.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.172e-05/0.1577, allocations: 103.3 kB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1577, allocations: 0 / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.158, allocations: 59.73 kB / 366.3 MB, free: 5.203 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: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0002164/0.1583, allocations: 107.2 kB / 366.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.1587, allocations: 187.7 kB / 366.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1587, allocations: 0 / 366.6 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.1588, allocations: 84.47 kB / 366.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.1591, allocations: 24 kB / 366.7 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007696/0.1598, allocations: 396.6 kB / 367.1 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.1603, allocations: 0.7445 MB / 367.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.235e-05/0.1604, allocations: 29.92 kB / 367.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.784e-05/0.1605, allocations: 19.44 kB / 367.9 MB, free: 3.57 MB / 302.1 MB Notification: Performance of SimCode: time 9.91e-07/0.1605, allocations: 4 kB / 367.9 MB, free: 3.566 MB / 302.1 MB Notification: Performance of Templates: time 0.005443/0.1659, allocations: 1.674 MB / 369.6 MB, free: 1.906 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","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches