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.001613/0.001613, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2237/0.2237, allocations: 46.11 MB / 344.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 80.67 kB / 418.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.118, allocations: 62.46 MB / 480.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003111/0.1211, allocations: 1.635 MB / 482.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.1222, allocations: 0.5805 MB / 483 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.967e-05/0.1224, allocations: 4 kB / 483 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.1225, allocations: 11.86 kB / 483 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.753e-05/0.1226, allocations: 11.88 kB / 483 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.1229, allocations: 103.2 kB / 483.1 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.1231, allocations: 111.8 kB / 483.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.1232, allocations: 23.98 kB / 483.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.089e-05/0.1233, allocations: 47.78 kB / 483.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.442e-05/0.1234, allocations: 47.78 kB / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.1234, allocations: 8 kB / 483.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.816e-05/0.1235, allocations: 8 kB / 483.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.961e-05/0.1235, allocations: 19.91 kB / 483.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.491e-05/0.1236, allocations: 35.8 kB / 483.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.1237, allocations: 87.92 kB / 483.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1237, allocations: 4 kB / 483.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1237, allocations: 0 / 483.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1237, allocations: 0 / 483.5 MB, free: 2.465 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.0006524/0.1244, allocations: 411.2 kB / 483.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.1244, allocations: 8.031 kB / 483.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.1245, allocations: 12.84 kB / 483.9 MB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.1247, allocations: 202.8 kB / 484.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.1247, allocations: 8.375 kB / 484.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.1248, allocations: 12.38 kB / 484.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1251, allocations: 105.9 kB / 484.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1251, allocations: 3.938 kB / 484.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.1251, allocations: 4 kB / 484.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.1251, allocations: 0 / 484.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.1253, allocations: 55.91 kB / 484.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006967/0.126, allocations: 392.4 kB / 484.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.1264, allocations: 106.5 kB / 484.8 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.1265, allocations: 36.91 kB / 484.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.249e-05/0.1265, allocations: 3.984 kB / 484.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.1268, allocations: 103.3 kB / 484.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.1268, allocations: 0 / 484.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004808/0.1273, allocations: 145.5 kB / 485.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.1274, allocations: 59.34 kB / 485.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1275, allocations: 144.8 kB / 485.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.1276, allocations: 29.69 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.12e-05/0.1276, allocations: 100 kB / 485.4 MB, free: 372 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.1277, allocations: 19.8 kB / 485.4 MB, free: 352 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.75e-05/0.1277, allocations: 21.72 kB / 485.4 MB, free: 324 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1279, allocations: 326.8 kB / 485.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.128, allocations: 35.97 kB / 485.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.1281, allocations: 45.7 kB / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000218/0.1284, allocations: 81.61 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1284, allocations: 0 / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002876/0.1287, allocations: 121.6 kB / 486 MB, free: 15.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.1287, allocations: 11.97 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1287, allocations: 0 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1287, allocations: 0 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.1289, allocations: 15.98 kB / 486.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.1289, allocations: 7.938 kB / 486.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.847e-05/0.129, allocations: 23.97 kB / 486.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.129, allocations: 4 kB / 486.1 MB, free: 15.63 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 0.0001065/0.1291, allocations: 121.8 kB / 486.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.1291, allocations: 15.84 kB / 486.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.952e-05/0.1292, allocations: 16.72 kB / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1292, allocations: 0 / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.1292, allocations: 0 / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1292, allocations: 0 / 486.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005664/0.1298, allocations: 398.4 kB / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1298, allocations: 0 / 486.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.603e-05/0.1299, allocations: 11.98 kB / 486.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1299, allocations: 7.938 kB / 486.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.1299, allocations: 0 / 486.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1299, allocations: 0 / 486.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1299, allocations: 0 / 486.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.1304, allocations: 251.2 kB / 486.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.981e-05/0.1305, allocations: 81.02 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.1305, allocations: 4.031 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1306, allocations: 27.97 kB / 487 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.1307, allocations: 11.98 kB / 487 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.1307, allocations: 0 / 487 MB, free: 14.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.322e-05/0.1308, allocations: 118.6 kB / 487.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1308, allocations: 0 / 487.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002355/0.1311, allocations: 20 kB / 487.2 MB, free: 14.47 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 0.0001101/0.1312, allocations: 91.25 kB / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003361/0.1315, allocations: 99.8 kB / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1315, allocations: 0 / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.1317, allocations: 35.98 kB / 487.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.132, allocations: 20.27 kB / 487.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009993/0.133, allocations: 308.1 kB / 487.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.1334, allocations: 0.7048 MB / 488.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.1334, allocations: 19.42 kB / 488.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1334, allocations: 4 kB / 488.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of Templates: time 0.003444/0.1369, allocations: 1.335 MB / 489.8 MB, free: 11.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches