Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008828/0.0008828, allocations: 97.05 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008988/0.0008989, allocations: 201.1 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 11.98 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1275, allocations: 63.56 MB / 483.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002094/0.1296, allocations: 1.353 MB / 484.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.1306, allocations: 0.5612 MB / 485 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.51e-05/0.1307, allocations: 4 kB / 485 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.1309, allocations: 7.922 kB / 485 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.935e-05/0.1309, allocations: 15.86 kB / 485 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003176/0.1312, allocations: 83.8 kB / 485.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.1314, allocations: 103.7 kB / 485.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.1315, allocations: 27.97 kB / 485.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.663e-05/0.1316, allocations: 39.84 kB / 485.3 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.148e-05/0.1317, allocations: 43.7 kB / 485.3 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.783e-05/0.1317, allocations: 8 kB / 485.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.143e-05/0.1317, allocations: 0 / 485.3 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.613e-05/0.1318, allocations: 15.92 kB / 485.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.971e-05/0.1318, allocations: 57.5 kB / 485.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001157/0.132, allocations: 75.91 kB / 485.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.132, allocations: 0 / 485.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.132, allocations: 0 / 485.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.132, allocations: 4 kB / 485.5 MB, free: 1.75 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006123/0.1326, allocations: 395.3 kB / 485.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.1326, allocations: 8.875 kB / 485.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.575e-05/0.1327, allocations: 20.73 kB / 485.9 MB, free: 1.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.133, allocations: 196.1 kB / 486.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.133, allocations: 8.375 kB / 486.1 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.133, allocations: 8.375 kB / 486.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.1334, allocations: 116.7 kB / 486.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.088e-06/0.1334, allocations: 0 / 486.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.1334, allocations: 7.984 kB / 486.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.1334, allocations: 0 / 486.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.1336, allocations: 63.95 kB / 486.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006738/0.1343, allocations: 396.4 kB / 486.7 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.1346, allocations: 114.5 kB / 486.8 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.1348, allocations: 40.91 kB / 486.8 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.1348, allocations: 7.938 kB / 486.8 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.1351, allocations: 107.4 kB / 486.9 MB, free: 132 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.056e-06/0.1351, allocations: 0 / 486.9 MB, free: 132 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004656/0.1356, allocations: 157.5 kB / 487.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.1356, allocations: 55.34 kB / 487.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.1357, allocations: 149.7 kB / 487.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.1358, allocations: 29.69 kB / 487.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.132e-05/0.1358, allocations: 100.1 kB / 487.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.1358, allocations: 19.8 kB / 487.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.1359, allocations: 17.72 kB / 487.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.136, allocations: 322.8 kB / 487.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1361, allocations: 35.97 kB / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.1363, allocations: 57.64 kB / 487.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002251/0.1365, allocations: 89.61 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1365, allocations: 0 / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002825/0.1368, allocations: 129.4 kB / 488.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1368, allocations: 10.28 kB / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1368, allocations: 320 / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1369, allocations: 4 kB / 488.1 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.311e-05/0.137, allocations: 24.02 kB / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.137, allocations: 0 / 488.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.814e-05/0.1371, allocations: 24.06 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.1371, allocations: 3.984 kB / 488.1 MB, free: 14.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.835e-05/0.1372, allocations: 129.8 kB / 488.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.1372, allocations: 11.84 kB / 488.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.1372, allocations: 12.72 kB / 488.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1373, allocations: 7.984 kB / 488.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.1373, allocations: 0 / 488.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1373, allocations: 0 / 488.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005141/0.1378, allocations: 410.3 kB / 488.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1378, allocations: 0 / 488.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.174e-05/0.1379, allocations: 11.98 kB / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.1379, allocations: 7.938 kB / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.1379, allocations: 0 / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1379, allocations: 0 / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1379, allocations: 4.281 kB / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004412/0.1384, allocations: 259.4 kB / 489 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.1384, allocations: 81.02 kB / 489 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.1385, allocations: 11.88 kB / 489.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.1386, allocations: 27.97 kB / 489.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.741e-05/0.1387, allocations: 16.03 kB / 489.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1387, allocations: 7.984 kB / 489.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.651e-05/0.1388, allocations: 110.8 kB / 489.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1388, allocations: 0 / 489.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000229/0.139, allocations: 20 kB / 489.2 MB, free: 13.65 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 9.429e-05/0.1391, allocations: 95.19 kB / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002825/0.1394, allocations: 95.88 kB / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1394, allocations: 0 / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.1395, allocations: 51.98 kB / 489.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.1398, allocations: 15.98 kB / 489.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008769/0.1407, allocations: 303 kB / 489.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.141, allocations: 0.7004 MB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.512e-05/0.141, allocations: 12.55 kB / 490.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.1411, allocations: 11.44 kB / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1411, allocations: 0 / 490.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of Templates: time 0.003712/0.1448, allocations: 1.034 MB / 491.5 MB, free: 11.29 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches