Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001431/0.001431, allocations: 195.3 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 242.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.215/0.215, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 62.39 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1245, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003066/0.1276, allocations: 1.62 MB / 471.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009791/0.1286, allocations: 0.5571 MB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.657e-05/0.1287, allocations: 0 / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.1289, allocations: 11.86 kB / 472.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.085e-05/0.1289, allocations: 19.86 kB / 472.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.1293, allocations: 87.75 kB / 472.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000163/0.1295, allocations: 111.7 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1296, allocations: 35.97 kB / 472.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.1297, allocations: 43.84 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.1298, allocations: 47.77 kB / 472.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.1298, allocations: 8 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.665e-05/0.1298, allocations: 8 kB / 472.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.578e-05/0.1299, allocations: 19.92 kB / 472.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.196e-05/0.1299, allocations: 39.73 kB / 472.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.1301, allocations: 87.92 kB / 472.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1301, allocations: 3.984 kB / 472.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1301, allocations: 0 / 472.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1301, allocations: 0 / 472.6 MB, free: 11.67 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.00064/0.1307, allocations: 415.1 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1308, allocations: 8.031 kB / 473 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.1308, allocations: 12.83 kB / 473 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.1311, allocations: 204 kB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.1311, allocations: 8.375 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.1311, allocations: 8.375 kB / 473.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002933/0.1314, allocations: 106 kB / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.1314, allocations: 3.938 kB / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.1314, allocations: 0 / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1315, allocations: 4 kB / 473.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.1316, allocations: 51.95 kB / 473.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006735/0.1323, allocations: 384.4 kB / 473.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.1327, allocations: 106.5 kB / 473.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.1328, allocations: 32.91 kB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.1328, allocations: 4 kB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.1331, allocations: 99.34 kB / 474 MB, free: 10.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.246e-06/0.1331, allocations: 0 / 474 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004788/0.1336, allocations: 149.5 kB / 474.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.1337, allocations: 63.28 kB / 474.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.1338, allocations: 149.8 kB / 474.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1338, allocations: 25.7 kB / 474.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.645e-05/0.1339, allocations: 100 kB / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.1339, allocations: 19.8 kB / 474.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.134, allocations: 21.72 kB / 474.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1341, allocations: 322.8 kB / 474.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.1342, allocations: 39.97 kB / 474.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.1343, allocations: 53.62 kB / 474.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002113/0.1346, allocations: 77.81 kB / 475 MB, free: 9.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.1346, allocations: 0 / 475 MB, free: 9.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002906/0.1349, allocations: 117.5 kB / 475.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1349, allocations: 11.95 kB / 475.1 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.1349, allocations: 4 kB / 475.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.1349, allocations: 0 / 475.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.916e-05/0.135, allocations: 15.94 kB / 475.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.135, allocations: 7.984 kB / 475.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.664e-05/0.1351, allocations: 23.97 kB / 475.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.1352, allocations: 4 kB / 475.2 MB, free: 8.832 MB / 350.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 9.872e-05/0.1353, allocations: 117.8 kB / 475.3 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.057e-05/0.1353, allocations: 11.84 kB / 475.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.1353, allocations: 12.72 kB / 475.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1353, allocations: 0 / 475.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1353, allocations: 4 kB / 475.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1354, allocations: 3.984 kB / 475.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005197/0.1359, allocations: 402.4 kB / 475.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1359, allocations: 0 / 475.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.951e-05/0.136, allocations: 11.98 kB / 475.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.136, allocations: 4 kB / 475.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.136, allocations: 0 / 475.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.136, allocations: 0 / 475.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.136, allocations: 0 / 475.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004582/0.1365, allocations: 259.2 kB / 476 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.1365, allocations: 85 kB / 476.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.1366, allocations: 4.031 kB / 476.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.1367, allocations: 23.98 kB / 476.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.1368, allocations: 11.98 kB / 476.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.1368, allocations: 3.984 kB / 476.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.675e-05/0.1369, allocations: 112.6 kB / 476.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1369, allocations: 0 / 476.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002355/0.1371, allocations: 16 kB / 476.3 MB, free: 7.672 MB / 350.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.0001036/0.1372, allocations: 99.33 kB / 476.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000304/0.1375, allocations: 91.77 kB / 476.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.366e-05/0.1376, allocations: 4 kB / 476.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.1377, allocations: 43.91 kB / 476.5 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.138, allocations: 27.92 kB / 476.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005469/0.1386, allocations: 245 kB / 476.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.1389, allocations: 0.7041 MB / 477.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.082e-05/0.1389, allocations: 15.44 kB / 477.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1389, allocations: 0 / 477.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of Templates: time 0.002998/0.1419, allocations: 1.355 MB / 478.8 MB, free: 5.031 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches