Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001702/0.001702, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 60.38 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1324, allocations: 50.53 MB / 358.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002859/0.1353, allocations: 1.485 MB / 360.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000665/0.136, allocations: 292.8 kB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.971e-05/0.1361, allocations: 0 / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.1363, allocations: 23.75 kB / 360.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.927e-05/0.1363, allocations: 19.8 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.1367, allocations: 107.8 kB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.137, allocations: 255.6 kB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.1374, allocations: 178.3 kB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.1375, allocations: 91.69 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000133/0.1376, allocations: 87.61 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.1377, allocations: 24 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.1377, allocations: 27.98 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.61e-05/0.1378, allocations: 55.83 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.1379, allocations: 107.5 kB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.1382, allocations: 227.2 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1382, allocations: 0 / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1382, allocations: 0 / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.1382, allocations: 0 / 361.8 MB, free: 10.41 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007343/0.1389, allocations: 494.4 kB / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.139, allocations: 11.97 kB / 362.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.1392, allocations: 28.73 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.1395, allocations: 228.1 kB / 362.6 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.1396, allocations: 16.94 kB / 362.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.1396, allocations: 28.38 kB / 362.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.14, allocations: 244 kB / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1401, allocations: 192 / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.1401, allocations: 11.94 kB / 362.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.188e-06/0.1401, allocations: 7.938 kB / 362.9 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.1404, allocations: 153.7 kB / 363 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00097/0.1414, allocations: 0.6856 MB / 363.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.1417, allocations: 170.8 kB / 363.9 MB, free: 8.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.1418, allocations: 83.83 kB / 364 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.1418, allocations: 8 kB / 364 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.142, allocations: 111.3 kB / 364.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.142, allocations: 3.938 kB / 364.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004026/0.1425, allocations: 217.2 kB / 364.3 MB, free: 7.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.1425, allocations: 55.41 kB / 364.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.1426, allocations: 157.3 kB / 364.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.1427, allocations: 37.64 kB / 364.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.969e-05/0.1428, allocations: 136.6 kB / 364.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.1428, allocations: 63.19 kB / 364.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.234e-05/0.1429, allocations: 74.02 kB / 364.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1431, allocations: 322.8 kB / 365.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.1432, allocations: 60.62 kB / 365.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.1434, allocations: 136 kB / 365.3 MB, free: 6.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.1436, allocations: 170.8 kB / 365.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1436, allocations: 0 / 365.5 MB, free: 6.473 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003475/0.144, allocations: 245.2 kB / 365.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.144, allocations: 4 kB / 365.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.144, allocations: 0 / 365.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.144, allocations: 4 kB / 365.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.1441, allocations: 27.92 kB / 365.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1442, allocations: 4.219 kB / 365.8 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.984e-05/0.1443, allocations: 31.69 kB / 365.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1443, allocations: 15.94 kB / 365.8 MB, free: 6.141 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001391/0.1444, allocations: 161.8 kB / 366 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.1445, allocations: 11.84 kB / 366 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.816e-05/0.1445, allocations: 12.84 kB / 366 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.1445, allocations: 4 kB / 366 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1445, allocations: 0 / 366 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1445, allocations: 3.984 kB / 366 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000638/0.1452, allocations: 0.5637 MB / 366.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1452, allocations: 0 / 366.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.013e-05/0.1453, allocations: 15.94 kB / 366.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.1453, allocations: 0 / 366.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.1453, allocations: 11.98 kB / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1453, allocations: 0 / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1453, allocations: 0 / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.1456, allocations: 271.8 kB / 366.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.1456, allocations: 92.86 kB / 367 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.1457, allocations: 4 kB / 367 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.502e-05/0.1458, allocations: 7.984 kB / 367 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.355e-05/0.1458, allocations: 23.97 kB / 367 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.1459, allocations: 7.938 kB / 367 MB, free: 4.863 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.856e-05/0.1459, allocations: 103.2 kB / 367.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1459, allocations: 0 / 367.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002738/0.1462, allocations: 43.91 kB / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000101/0.1463, allocations: 103.5 kB / 367.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003/0.1466, allocations: 184.9 kB / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1466, allocations: 0 / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.1468, allocations: 79.91 kB / 367.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.1471, allocations: 27.86 kB / 367.5 MB, free: 4.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005444/0.1476, allocations: 316.6 kB / 367.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.148, allocations: 0.7284 MB / 368.6 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.217e-05/0.1481, allocations: 25.94 kB / 368.6 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.13e-05/0.1481, allocations: 19.44 kB / 368.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1481, allocations: 0 / 368.6 MB, free: 3.184 MB / 302.1 MB Notification: Performance of Templates: time 0.004544/0.1527, allocations: 1.645 MB / 370.3 MB, free: 1.547 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches