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.001481/0.001481, allocations: 119.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001686/0.001686, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 247.5 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 59.59 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1324, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003617/0.136, allocations: 1.664 MB / 360.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008498/0.1369, allocations: 291.1 kB / 360.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.137, allocations: 7.938 kB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1372, allocations: 27.73 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.669e-05/0.1373, allocations: 19.73 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.1377, allocations: 115.8 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003579/0.1381, allocations: 271.5 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003476/0.1384, allocations: 198.9 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1386, allocations: 95.69 kB / 361.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.1387, allocations: 103.5 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.1388, allocations: 24 kB / 361.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.146e-05/0.1388, allocations: 27.98 kB / 361.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.142e-05/0.1389, allocations: 59.78 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.1391, allocations: 107.5 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.1394, allocations: 247.1 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.1394, allocations: 0 / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1394, allocations: 0 / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1394, allocations: 4 kB / 362.1 MB, free: 10.09 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.000759/0.1402, allocations: 494.6 kB / 362.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.1402, allocations: 12.03 kB / 362.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/0.1405, allocations: 36.64 kB / 362.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004327/0.141, allocations: 231.9 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.448e-05/0.141, allocations: 24.94 kB / 362.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.1411, allocations: 28.36 kB / 362.9 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004655/0.1416, allocations: 270.6 kB / 363.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1416, allocations: 4.125 kB / 363.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.1416, allocations: 15.92 kB / 363.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1416, allocations: 8 kB / 363.2 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003109/0.1419, allocations: 161.6 kB / 363.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.1433, allocations: 0.9594 MB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.1436, allocations: 173.4 kB / 364.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.1437, allocations: 85.2 kB / 364.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.1438, allocations: 11.97 kB / 364.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.144, allocations: 129.1 kB / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.144, allocations: 0 / 364.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004301/0.1444, allocations: 228.2 kB / 365 MB, free: 7.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.1445, allocations: 81.11 kB / 365 MB, free: 6.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001319/0.1446, allocations: 157.5 kB / 365.2 MB, free: 6.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.1447, allocations: 37.7 kB / 365.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1448, allocations: 140.5 kB / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.396e-05/0.1448, allocations: 59.19 kB / 365.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.145, allocations: 81.59 kB / 365.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002973/0.1453, allocations: 338.9 kB / 365.8 MB, free: 6.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1454, allocations: 63.77 kB / 365.9 MB, free: 6.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000432/0.1458, allocations: 132.5 kB / 366 MB, free: 5.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000377/0.1462, allocations: 196.4 kB / 366.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1462, allocations: 4 kB / 366.2 MB, free: 5.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003763/0.1466, allocations: 257.2 kB / 366.5 MB, free: 5.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1466, allocations: 6.656 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1467, allocations: 7.938 kB / 366.5 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1467, allocations: 4 kB / 366.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.1468, allocations: 35.92 kB / 366.5 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.1468, allocations: 8.281 kB / 366.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.1469, allocations: 23.78 kB / 366.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.147, allocations: 15.92 kB / 366.6 MB, free: 5.297 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.1471, allocations: 165.6 kB / 366.7 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.1472, allocations: 11.81 kB / 366.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.1472, allocations: 24.83 kB / 366.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/0.1473, allocations: 8 kB / 366.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1473, allocations: 0 / 366.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1474, allocations: 4 kB / 366.8 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000894/0.1483, allocations: 0.5712 MB / 367.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1483, allocations: 0 / 367.3 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.774e-05/0.1483, allocations: 15.98 kB / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1483, allocations: 0 / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.1484, allocations: 8 kB / 367.4 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1484, allocations: 3.938 kB / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1484, allocations: 0 / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.1487, allocations: 284.8 kB / 367.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.1487, allocations: 96.86 kB / 367.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.441e-05/0.1488, allocations: 4 kB / 367.8 MB, free: 4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.732e-05/0.1489, allocations: 11.92 kB / 367.8 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.71e-05/0.1489, allocations: 15.98 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.149, allocations: 15.98 kB / 367.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.396e-05/0.149, allocations: 98.78 kB / 367.9 MB, free: 3.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.149, allocations: 4 kB / 367.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002953/0.1493, allocations: 47.84 kB / 367.9 MB, free: 3.812 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.localActive,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (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.0001054/0.1494, allocations: 103.2 kB / 368 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003347/0.1498, allocations: 187.9 kB / 368.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1498, allocations: 0 / 368.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.1499, allocations: 84.47 kB / 368.3 MB, free: 3.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.1502, allocations: 27.98 kB / 368.3 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006191/0.1509, allocations: 328.6 kB / 368.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.1513, allocations: 0.7365 MB / 369.4 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.17e-05/0.1514, allocations: 17.95 kB / 369.4 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.2e-05/0.1515, allocations: 27.38 kB / 369.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1515, allocations: 4 kB / 369.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of Templates: time 0.004528/0.156, allocations: 1.701 MB / 371.1 MB, free: 0.5547 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches