Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 105.7 kB / 16.93 MB, free: 5.793 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002014/0.002014, allocations: 191.3 kB / 17.86 MB, free: 5.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2268/0.2268, allocations: 43.52 MB / 314.6 MB, free: 0.5312 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 69.58 kB / 383.4 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.122, allocations: 57.79 MB / 441.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002721/0.1248, allocations: 1.618 MB / 442.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008436/0.1256, allocations: 0.5931 MB / 443.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.1258, allocations: 0 / 443.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.1259, allocations: 11.86 kB / 443.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.561e-05/0.1259, allocations: 15.86 kB / 443.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.1263, allocations: 91.75 kB / 443.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.1264, allocations: 115.7 kB / 443.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1266, allocations: 31.92 kB / 443.7 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.695e-05/0.1266, allocations: 43.84 kB / 443.7 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.665e-05/0.1267, allocations: 39.83 kB / 443.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.1267, allocations: 8 kB / 443.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.499e-05/0.1268, allocations: 12 kB / 443.8 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.613e-05/0.1268, allocations: 23.86 kB / 443.8 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.65e-05/0.1268, allocations: 39.73 kB / 443.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.127, allocations: 87.69 kB / 443.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.127, allocations: 0 / 443.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.127, allocations: 0 / 443.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.127, allocations: 0 / 443.9 MB, free: 4.172 MB / 318.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.0005713/0.1276, allocations: 423 kB / 444.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.1276, allocations: 11.89 kB / 444.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.893e-05/0.1277, allocations: 16.78 kB / 444.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.1279, allocations: 195.8 kB / 444.5 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.1279, allocations: 8.375 kB / 444.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/0.1279, allocations: 12.38 kB / 444.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.1282, allocations: 101.9 kB / 444.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1282, allocations: 4 kB / 444.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.1282, allocations: 7.984 kB / 444.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.1282, allocations: 0 / 444.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.1284, allocations: 55.95 kB / 444.7 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.129, allocations: 384.4 kB / 445.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.1293, allocations: 98.52 kB / 445.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1294, allocations: 40.91 kB / 445.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.1295, allocations: 0 / 445.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002646/0.1297, allocations: 99.3 kB / 445.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.1297, allocations: 0 / 445.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004509/0.1302, allocations: 145.4 kB / 445.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1302, allocations: 63.34 kB / 445.5 MB, free: 2.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.1304, allocations: 145.8 kB / 445.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1304, allocations: 25.7 kB / 445.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.1304, allocations: 96.14 kB / 445.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.1305, allocations: 27.78 kB / 445.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.1305, allocations: 21.72 kB / 445.8 MB, free: 2.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.1306, allocations: 322.8 kB / 446.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.1307, allocations: 39.97 kB / 446.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.1308, allocations: 53.62 kB / 446.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.131, allocations: 77.81 kB / 446.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.131, allocations: 0 / 446.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002596/0.1313, allocations: 121.5 kB / 446.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1313, allocations: 7.938 kB / 446.5 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.1313, allocations: 3.938 kB / 446.5 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.1313, allocations: 8.031 kB / 446.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1314, allocations: 15.98 kB / 446.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1315, allocations: 4 kB / 446.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.033e-05/0.1316, allocations: 11.98 kB / 446.5 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.1316, allocations: 11.94 kB / 446.5 MB, free: 1.332 MB / 318.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.022e-05/0.1317, allocations: 117.8 kB / 446.6 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.1317, allocations: 15.75 kB / 446.6 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/0.1317, allocations: 16.72 kB / 446.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1317, allocations: 0 / 446.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1317, allocations: 3.984 kB / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1317, allocations: 0 / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004291/0.1322, allocations: 394.4 kB / 447 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1322, allocations: 4 kB / 447 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.068e-05/0.1323, allocations: 15.98 kB / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1323, allocations: 0 / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/0.1323, allocations: 0 / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1323, allocations: 0 / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1323, allocations: 0 / 447.1 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.1327, allocations: 255.2 kB / 447.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.065e-05/0.1327, allocations: 88.94 kB / 447.4 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.1328, allocations: 4.031 kB / 447.4 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.1329, allocations: 19.98 kB / 447.4 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.133, allocations: 16.03 kB / 447.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.133, allocations: 4 kB / 447.4 MB, free: 300 kB / 318.1 MB Notification: Performance of sorting global known variables: time 6.023e-05/0.1331, allocations: 108.6 kB / 447.5 MB, free: 192 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1331, allocations: 0 / 447.5 MB, free: 192 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002281/0.1333, allocations: 16.09 kB / 447.6 MB, free: 176 kB / 318.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.699e-05/0.1334, allocations: 103.2 kB / 447.7 MB, free: 64 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.1337, allocations: 87.83 kB / 447.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1337, allocations: 3.906 kB / 447.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.1339, allocations: 47.91 kB / 447.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.1342, allocations: 21.19 kB / 447.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000544/0.1348, allocations: 241.9 kB / 448.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.1351, allocations: 0.7041 MB / 448.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.1352, allocations: 19.44 kB / 448.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1352, allocations: 0 / 448.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of Templates: time 0.003163/0.1383, allocations: 1.354 MB / 450.1 MB, free: 13.54 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches