Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 100.6 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.00114/0.001141, allocations: 199.5 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.51/1.51, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003075, allocations: 8 kB / 306.6 MB, free: 1.652 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1503, allocations: 51.48 MB / 358 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002143/0.1525, allocations: 1.417 MB / 359.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006512/0.1532, allocations: 299.2 kB / 359.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.971e-05/0.1533, allocations: 4 kB / 359.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.1534, allocations: 31.72 kB / 359.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.155e-05/0.1535, allocations: 11.98 kB / 359.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.1539, allocations: 87.83 kB / 359.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.1541, allocations: 167.6 kB / 360.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002966/0.1544, allocations: 145.9 kB / 360.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.1545, allocations: 67.77 kB / 360.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.1547, allocations: 75.61 kB / 360.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.1547, allocations: 12 kB / 360.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.441e-05/0.1548, allocations: 20 kB / 360.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.771e-05/0.1548, allocations: 47.81 kB / 360.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.713e-05/0.1549, allocations: 57.58 kB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.1551, allocations: 151.7 kB / 360.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.1551, allocations: 0 / 360.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1551, allocations: 0 / 360.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1551, allocations: 4 kB / 360.6 MB, free: 11.56 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.0006795/0.1558, allocations: 450.8 kB / 361.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.1559, allocations: 12.03 kB / 361.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.681e-05/0.156, allocations: 19.81 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.1562, allocations: 230.7 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.768e-05/0.1563, allocations: 24.56 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.1564, allocations: 31.95 kB / 361.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005148/0.1569, allocations: 270 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1569, allocations: 4 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.1569, allocations: 8 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.1569, allocations: 8 kB / 361.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.1572, allocations: 165.6 kB / 361.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/0.1585, allocations: 0.9752 MB / 362.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.1588, allocations: 177.6 kB / 363 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.1588, allocations: 192 / 363 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.1591, allocations: 140.4 kB / 363.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.1591, allocations: 4 kB / 363.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004308/0.1596, allocations: 225.1 kB / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.1596, allocations: 85.09 kB / 363.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.1598, allocations: 149.6 kB / 363.6 MB, free: 8.375 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.1598, allocations: 37.7 kB / 363.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.661e-05/0.1599, allocations: 140.5 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.03e-05/0.16, allocations: 59.2 kB / 363.8 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.16, allocations: 4 kB / 363.8 MB, free: 8.129 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1601, allocations: 338.9 kB / 364.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.1603, allocations: 63.97 kB / 364.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000176/0.1605, allocations: 140.3 kB / 364.3 MB, free: 7.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.1606, allocations: 75.94 kB / 364.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1606, allocations: 0 / 364.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003885/0.161, allocations: 257.9 kB / 364.6 MB, free: 7.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.161, allocations: 8 kB / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.161, allocations: 0 / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1611, allocations: 7.953 kB / 364.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.1612, allocations: 35.92 kB / 364.7 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.1612, allocations: 4 kB / 364.7 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.1613, allocations: 27.73 kB / 364.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.1614, allocations: 16 kB / 364.7 MB, free: 7.129 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.0001688/0.1615, allocations: 159.1 kB / 364.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.1616, allocations: 15.81 kB / 364.9 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00036/0.1619, allocations: 195.4 kB / 365.1 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.162, allocations: 4 kB / 365.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.162, allocations: 3.953 kB / 365.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.162, allocations: 3.984 kB / 365.1 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007361/0.1627, allocations: 0.5961 MB / 365.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.1627, allocations: 4 kB / 365.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.809e-05/0.1628, allocations: 15.89 kB / 365.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.1628, allocations: 4 kB / 365.7 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.1629, allocations: 7.984 kB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1629, allocations: 4 kB / 365.7 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1629, allocations: 4 kB / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.1632, allocations: 293.9 kB / 366 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.382e-05/0.1633, allocations: 92.86 kB / 366.1 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.1633, allocations: 8 kB / 366.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.703e-05/0.1634, allocations: 11.98 kB / 366.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.1635, allocations: 19.97 kB / 366.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.724e-05/0.1635, allocations: 8 kB / 366.2 MB, free: 5.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.234e-05/0.1636, allocations: 98.89 kB / 366.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1636, allocations: 7.938 kB / 366.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003067/0.1639, allocations: 51.84 kB / 366.3 MB, free: 5.418 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,transition1.enableFire,step.localActive,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.0001978/0.1641, allocations: 107.2 kB / 366.4 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003702/0.1645, allocations: 187.7 kB / 366.6 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1645, allocations: 0 / 366.6 MB, free: 5.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.1647, allocations: 84.47 kB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.1649, allocations: 27.94 kB / 366.7 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007023/0.1656, allocations: 388.7 kB / 367.1 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.166, allocations: 0.7482 MB / 367.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.684e-05/0.1661, allocations: 21.95 kB / 367.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.612e-05/0.1661, allocations: 27.42 kB / 367.9 MB, free: 3.785 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1661, allocations: 3.938 kB / 367.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of Templates: time 0.005061/0.1712, allocations: 1.664 MB / 369.6 MB, free: 2.129 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches