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.001961/0.001961, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002421/0.002421, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 62.61 kB / 306.9 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1242, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003258/0.1275, allocations: 1.48 MB / 358.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007741/0.1283, allocations: 284.9 kB / 359.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.1285, allocations: 7.938 kB / 359.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.1287, allocations: 23.67 kB / 359.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.679e-05/0.1288, allocations: 27.8 kB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000445/0.1292, allocations: 107.8 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004053/0.1296, allocations: 251.6 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.13, allocations: 174.3 kB / 359.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1302, allocations: 79.78 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001486/0.1303, allocations: 99.53 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.1304, allocations: 20 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.324e-05/0.1305, allocations: 35.94 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.1306, allocations: 51.88 kB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.1307, allocations: 91.53 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.131, allocations: 227.2 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.131, allocations: 0 / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.131, allocations: 4 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.131, allocations: 4 kB / 360.4 MB, free: 11.16 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.0007169/0.1317, allocations: 486.8 kB / 360.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1318, allocations: 8.031 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002554/0.132, allocations: 28.73 kB / 360.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.1323, allocations: 224 kB / 361.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.243e-05/0.1324, allocations: 20.94 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.599e-05/0.1324, allocations: 28.38 kB / 361.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.1328, allocations: 240 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1328, allocations: 4.125 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.624e-05/0.1329, allocations: 15.94 kB / 361.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1329, allocations: 4 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003442/0.1332, allocations: 157.6 kB / 361.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009996/0.1342, allocations: 0.6973 MB / 362.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.1346, allocations: 170.8 kB / 362.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1347, allocations: 80.83 kB / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.1347, allocations: 0 / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.135, allocations: 115.3 kB / 362.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.135, allocations: 0 / 362.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004273/0.1354, allocations: 228.4 kB / 362.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.1355, allocations: 55.41 kB / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.1356, allocations: 153.8 kB / 363.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.1357, allocations: 37.7 kB / 363.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1358, allocations: 124.6 kB / 363.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.1359, allocations: 67.17 kB / 363.3 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.1361, allocations: 70.02 kB / 363.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1362, allocations: 326.8 kB / 363.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.1364, allocations: 64.62 kB / 363.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.1365, allocations: 128.1 kB / 363.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002427/0.1368, allocations: 174.7 kB / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1368, allocations: 0 / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004374/0.1372, allocations: 241.2 kB / 364.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1373, allocations: 4 kB / 364.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1373, allocations: 4 kB / 364.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.1373, allocations: 4.219 kB / 364.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.1375, allocations: 35.92 kB / 364.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1375, allocations: 4 kB / 364.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.1376, allocations: 27.69 kB / 364.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.1376, allocations: 15.94 kB / 364.4 MB, free: 6.898 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.0001342/0.1377, allocations: 153.8 kB / 364.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.1378, allocations: 11.84 kB / 364.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.957e-05/0.1378, allocations: 20.84 kB / 364.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1378, allocations: 4 kB / 364.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.1379, allocations: 11.98 kB / 364.6 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.1379, allocations: 0 / 364.6 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006874/0.1386, allocations: 0.5448 MB / 365.1 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1386, allocations: 3.938 kB / 365.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.119e-05/0.1387, allocations: 12 kB / 365.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.1387, allocations: 0 / 365.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1387, allocations: 7.984 kB / 365.1 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.1387, allocations: 8 kB / 365.1 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1387, allocations: 3.938 kB / 365.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.1391, allocations: 264.4 kB / 365.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.1391, allocations: 92.86 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.1392, allocations: 7.984 kB / 365.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.1393, allocations: 8 kB / 365.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.305e-05/0.1393, allocations: 31.84 kB / 365.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.1394, allocations: 8 kB / 365.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.014e-05/0.1394, allocations: 91.27 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1394, allocations: 0 / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.1397, allocations: 43.91 kB / 365.7 MB, free: 5.484 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.000128/0.1399, allocations: 99.52 kB / 365.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003664/0.1402, allocations: 202.4 kB / 366 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1402, allocations: 448 / 366 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.1404, allocations: 79.92 kB / 366.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.1407, allocations: 26.89 kB / 366.1 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005903/0.1413, allocations: 319.7 kB / 366.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1416, allocations: 0.7323 MB / 367.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.649e-05/0.1417, allocations: 21.94 kB / 367.1 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.175e-05/0.1417, allocations: 19.44 kB / 367.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1417, allocations: 0 / 367.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of Templates: time 0.004686/0.1464, allocations: 1.65 MB / 368.8 MB, free: 2.297 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches