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.0009516/0.0009516, allocations: 97.89 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001157/0.001157, allocations: 191.8 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.577/1.577, allocations: 227.7 MB / 246.4 MB, free: 11.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.000267, allocations: 8 kB / 307.1 MB, free: 1.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1394, allocations: 51.52 MB / 358.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002276/0.1418, allocations: 1.417 MB / 360 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007383/0.1426, allocations: 319 kB / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1427, allocations: 0 / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.1429, allocations: 19.8 kB / 360.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.357e-05/0.1429, allocations: 7.938 kB / 360.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.1433, allocations: 91.88 kB / 360.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.1436, allocations: 231.5 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.144, allocations: 157.8 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.205e-05/0.1441, allocations: 63.78 kB / 360.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.1442, allocations: 79.61 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.1442, allocations: 8 kB / 361 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.453e-05/0.1443, allocations: 12 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.5e-05/0.1444, allocations: 47.77 kB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.418e-05/0.1445, allocations: 61.58 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.1447, allocations: 151.7 kB / 361.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1447, allocations: 4 kB / 361.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1447, allocations: 0 / 361.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.1447, allocations: 0 / 361.3 MB, free: 11.01 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.0006889/0.1454, allocations: 450.8 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.1455, allocations: 12.03 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.1457, allocations: 27.8 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.146, allocations: 222.8 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.1461, allocations: 32.48 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.1461, allocations: 28 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.1466, allocations: 270 kB / 362.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1466, allocations: 3.938 kB / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.1466, allocations: 12 kB / 362.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1466, allocations: 8 kB / 362.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002897/0.1469, allocations: 165.5 kB / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.1481, allocations: 0.9557 MB / 363.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.1484, allocations: 178 kB / 363.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.1485, allocations: 93.56 kB / 363.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.1486, allocations: 192 / 363.7 MB, free: 8.379 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.1488, allocations: 132.5 kB / 363.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.192e-06/0.1489, allocations: 4 kB / 363.8 MB, free: 8.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004382/0.1493, allocations: 221.2 kB / 364 MB, free: 8.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.1494, allocations: 85.11 kB / 364.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.1495, allocations: 153.5 kB / 364.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.1495, allocations: 37.7 kB / 364.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1497, allocations: 132.6 kB / 364.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.1497, allocations: 67.19 kB / 364.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.341e-05/0.1497, allocations: 4 kB / 364.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1499, allocations: 331 kB / 364.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.15, allocations: 67.69 kB / 364.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.1502, allocations: 132.5 kB / 365 MB, free: 6.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.1503, allocations: 68 kB / 365.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1503, allocations: 3.984 kB / 365.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003583/0.1507, allocations: 257.9 kB / 365.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1507, allocations: 8 kB / 365.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.1507, allocations: 0 / 365.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1507, allocations: 4 kB / 365.4 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.1509, allocations: 39.88 kB / 365.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.1509, allocations: 4 kB / 365.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.678e-05/0.151, allocations: 23.75 kB / 365.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.1511, allocations: 15.98 kB / 365.4 MB, free: 6.52 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.0001636/0.1512, allocations: 174.3 kB / 365.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.1513, allocations: 15.81 kB / 365.6 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.1513, allocations: 20.83 kB / 365.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.1513, allocations: 4 kB / 365.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.1513, allocations: 3.953 kB / 365.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1514, allocations: 0 / 365.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006853/0.152, allocations: 0.5767 MB / 366.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1521, allocations: 4 kB / 366.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.679e-05/0.1521, allocations: 11.98 kB / 366.2 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.1521, allocations: 4 kB / 366.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.1522, allocations: 4 kB / 366.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.371e-06/0.1522, allocations: 7.938 kB / 366.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.1522, allocations: 4 kB / 366.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.1525, allocations: 275.6 kB / 366.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.1525, allocations: 92.88 kB / 366.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.1526, allocations: 0 / 366.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.104e-05/0.1527, allocations: 15.92 kB / 366.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.1527, allocations: 23.97 kB / 366.7 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.1528, allocations: 4 kB / 366.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.127e-05/0.1528, allocations: 99.27 kB / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1528, allocations: 0 / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.1531, allocations: 47.84 kB / 366.8 MB, free: 5.039 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,transition1.enableFire,step.localActive,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.0001263/0.1533, allocations: 111.1 kB / 366.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003078/0.1536, allocations: 171.8 kB / 367.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1536, allocations: 0 / 367.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.1537, allocations: 91.69 kB / 367.2 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.154, allocations: 20.61 kB / 367.2 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.1547, allocations: 387.8 kB / 367.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.155, allocations: 0.7329 MB / 368.3 MB, free: 3.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.757e-05/0.1551, allocations: 25.94 kB / 368.3 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.229e-05/0.1552, allocations: 23.44 kB / 368.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1552, allocations: 0 / 368.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of Templates: time 0.004636/0.1598, allocations: 1.501 MB / 369.9 MB, free: 1.938 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches