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.001398/0.001397, allocations: 104 kB / 16.4 MB, free: 6.492 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.00128/0.00128, allocations: 188.1 kB / 17.34 MB, free: 5.77 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.384/1.384, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.2111/0.2111, allocations: 43.52 MB / 314.1 MB, free: 468 kB / 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.00186/0.00186, allocations: 67.91 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1463, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002975/0.1493, allocations: 1.617 MB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1504, allocations: 0.597 MB / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.808e-05/0.1505, allocations: 0 / 0.49 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.1507, allocations: 15.86 kB / 0.4901 GB, free: 9.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.589e-05/0.1508, allocations: 11.88 kB / 0.4901 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003726/0.1511, allocations: 95.73 kB / 0.4902 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.1513, allocations: 115.7 kB / 0.4903 GB, free: 9.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.1515, allocations: 39.95 kB / 0.4903 GB, free: 9.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.946e-05/0.1516, allocations: 43.84 kB / 0.4903 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.359e-05/0.1517, allocations: 35.84 kB / 0.4904 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.1518, allocations: 8 kB / 0.4904 GB, free: 9.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.633e-05/0.1518, allocations: 8 kB / 0.4904 GB, free: 9.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.96e-05/0.1518, allocations: 23.91 kB / 0.4904 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.995e-05/0.1519, allocations: 43.72 kB / 0.4905 GB, free: 9.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1521, allocations: 87.66 kB / 0.4905 GB, free: 9.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1521, allocations: 4 kB / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1521, allocations: 0 / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.1522, allocations: 0 / 0.4905 GB, free: 9.051 MB / 382.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.000858/0.153, allocations: 422.4 kB / 0.4909 GB, free: 8.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.1531, allocations: 15.89 kB / 0.491 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.081e-05/0.1531, allocations: 8.844 kB / 0.491 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.1535, allocations: 207.9 kB / 0.4912 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.1535, allocations: 8.375 kB / 0.4912 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.1535, allocations: 12.38 kB / 0.4912 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002844/0.1538, allocations: 97.95 kB / 0.4913 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.1538, allocations: 0 / 0.4913 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1539, allocations: 4 kB / 0.4913 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.1539, allocations: 4 kB / 0.4913 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.154, allocations: 51.97 kB / 0.4913 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006763/0.1547, allocations: 384.4 kB / 0.4917 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.1551, allocations: 106.5 kB / 0.4918 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1552, allocations: 44.78 kB / 0.4919 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.1552, allocations: 7.938 kB / 0.4919 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002285/0.1554, allocations: 95.36 kB / 0.492 GB, free: 7.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.634e-06/0.1555, allocations: 0 / 0.492 GB, free: 7.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004411/0.1559, allocations: 145.5 kB / 0.4921 GB, free: 7.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/0.156, allocations: 59.34 kB / 0.4921 GB, free: 7.234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.1561, allocations: 149.7 kB / 0.4923 GB, free: 7.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.1561, allocations: 29.69 kB / 0.4923 GB, free: 7.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.565e-05/0.1562, allocations: 104.1 kB / 0.4924 GB, free: 6.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.758e-05/0.1562, allocations: 27.78 kB / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.1563, allocations: 25.72 kB / 0.4925 GB, free: 6.879 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1564, allocations: 326.8 kB / 0.4928 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1565, allocations: 31.97 kB / 0.4928 GB, free: 6.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.1567, allocations: 53.69 kB / 0.4929 GB, free: 6.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.1569, allocations: 73.62 kB / 0.4929 GB, free: 6.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1569, allocations: 0 / 0.4929 GB, free: 6.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002629/0.1571, allocations: 121.5 kB / 0.493 GB, free: 6.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.1572, allocations: 7.938 kB / 0.4931 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1572, allocations: 0 / 0.4931 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.1572, allocations: 3.984 kB / 0.4931 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.853e-05/0.1573, allocations: 12.28 kB / 0.4931 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1573, allocations: 4 kB / 0.4931 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.985e-05/0.1574, allocations: 20.02 kB / 0.4931 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1574, allocations: 11.92 kB / 0.4931 GB, free: 6.199 MB / 382.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.0001409/0.1576, allocations: 121.7 kB / 0.4932 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.1576, allocations: 11.84 kB / 0.4932 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.076e-05/0.1576, allocations: 16.72 kB / 0.4932 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1577, allocations: 0 / 0.4932 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1577, allocations: 0 / 0.4932 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1577, allocations: 0 / 0.4932 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005028/0.1582, allocations: 398.3 kB / 0.4936 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1582, allocations: 4 kB / 0.4936 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.24e-05/0.1583, allocations: 15.92 kB / 0.4936 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1583, allocations: 4 kB / 0.4937 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.1583, allocations: 4 kB / 0.4937 GB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1583, allocations: 3.938 kB / 0.4937 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1583, allocations: 0 / 0.4937 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004224/0.1588, allocations: 247.3 kB / 0.4939 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.828e-05/0.1588, allocations: 84.95 kB / 0.494 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.1588, allocations: 8.016 kB / 0.494 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.159, allocations: 15.98 kB / 0.494 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.159, allocations: 11.98 kB / 0.494 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.159, allocations: 0 / 0.494 GB, free: 5.168 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.44e-05/0.1591, allocations: 116 kB / 0.4941 GB, free: 5.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1591, allocations: 0 / 0.4941 GB, free: 5.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.1594, allocations: 24.06 kB / 0.4941 GB, free: 5.031 MB / 382.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.0001048/0.1595, allocations: 95.19 kB / 0.4942 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002779/0.1598, allocations: 83.88 kB / 0.4943 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1598, allocations: 0 / 0.4943 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.1599, allocations: 47.98 kB / 0.4944 GB, free: 4.801 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.1602, allocations: 18.64 kB / 0.4944 GB, free: 4.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005222/0.1608, allocations: 219 kB / 0.4946 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.1611, allocations: 0.7041 MB / 0.4953 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.949e-05/0.1611, allocations: 4.562 kB / 0.4953 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.533e-05/0.1612, allocations: 11.62 kB / 0.4953 GB, free: 3.797 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1612, allocations: 0 / 0.4953 GB, free: 3.797 MB / 382.1 MB Notification: Performance of Templates: time 0.004043/0.1652, allocations: 1.262 MB / 0.4965 GB, free: 2.535 MB / 382.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches