Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 104.6 kB / 16.4 MB, free: 6.461 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.001109/0.001109, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.702/1.702, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2285/0.2285, allocations: 43.52 MB / 314.1 MB, free: 436 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.001655/0.001655, allocations: 69.45 kB / 441.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1541, allocations: 57.78 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.003302/0.1574, allocations: 0.8208 MB / 0.4887 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003467/0.1578, allocations: 43.83 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.158, allocations: 3.938 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.1581, allocations: 15.86 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.41e-05/0.1583, allocations: 4 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.1584, allocations: 15.92 kB / 0.4887 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001814/0.1586, allocations: 43.91 kB / 0.4888 GB, free: 10.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.1588, allocations: 19.97 kB / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.169e-05/0.1589, allocations: 11.94 kB / 0.4888 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.481e-05/0.1589, allocations: 15.92 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.159, allocations: 4 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.288e-05/0.159, allocations: 0 / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.587e-05/0.1591, allocations: 11.94 kB / 0.4888 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.1591, allocations: 15.92 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.1593, allocations: 43.77 kB / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1593, allocations: 0 / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1593, allocations: 0 / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.1593, allocations: 0 / 0.4889 GB, free: 10.71 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005669/0.1599, allocations: 351.3 kB / 0.4892 GB, free: 10.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.16, allocations: 11.89 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.495e-05/0.16, allocations: 8.891 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.1603, allocations: 184.3 kB / 0.4894 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.1604, allocations: 4.375 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.1604, allocations: 4.375 kB / 0.4894 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001639/0.1606, allocations: 54.23 kB / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1606, allocations: 192 / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.1606, allocations: 3.938 kB / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.1606, allocations: 0 / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.291e-05/0.1607, allocations: 12 kB / 0.4895 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006726/0.1614, allocations: 300.6 kB / 0.4898 GB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.786e-05/0.1615, allocations: 38.5 kB / 0.4898 GB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.284e-05/0.1615, allocations: 4.859 kB / 0.4898 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.1615, allocations: 8 kB / 0.4898 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.942e-05/0.1616, allocations: 51.34 kB / 0.4899 GB, free: 9.527 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.1617, allocations: 0 / 0.4899 GB, free: 9.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001895/0.1619, allocations: 53.81 kB / 0.4899 GB, free: 9.469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.1619, allocations: 55.41 kB / 0.49 GB, free: 9.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.162, allocations: 113.8 kB / 0.4901 GB, free: 9.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1621, allocations: 29.7 kB / 0.4901 GB, free: 9.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.81e-05/0.1621, allocations: 92.09 kB / 0.4902 GB, free: 9.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.1622, allocations: 3.953 kB / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.1622, allocations: 21.7 kB / 0.4902 GB, free: 9.121 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1624, allocations: 318.8 kB / 0.4906 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.661e-05/0.1624, allocations: 11.94 kB / 0.4906 GB, free: 8.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.28e-05/0.1624, allocations: 21.7 kB / 0.4906 GB, free: 8.762 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.801e-05/0.1625, allocations: 25.72 kB / 0.4906 GB, free: 8.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1625, allocations: 0 / 0.4906 GB, free: 8.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001194/0.1627, allocations: 57.58 kB / 0.4907 GB, free: 8.668 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1627, allocations: 4 kB / 0.4907 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1627, allocations: 0 / 0.4907 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1627, allocations: 0 / 0.4907 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.021e-05/0.1628, allocations: 12.03 kB / 0.4907 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1628, allocations: 4 kB / 0.4907 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.641e-05/0.1628, allocations: 0 / 0.4907 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.1629, allocations: 3.938 kB / 0.4907 GB, free: 8.645 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.616e-05/0.163, allocations: 121.8 kB / 0.4908 GB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.163, allocations: 4 kB / 0.4908 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.268e-05/0.163, allocations: 7.906 kB / 0.4908 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.163, allocations: 0 / 0.4908 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.163, allocations: 0 / 0.4908 GB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1631, allocations: 4 kB / 0.4908 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003528/0.1634, allocations: 310.4 kB / 0.4911 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1634, allocations: 0 / 0.4911 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.711e-05/0.1635, allocations: 4 kB / 0.4911 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1635, allocations: 384 / 0.4911 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.1635, allocations: 3.938 kB / 0.4911 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1635, allocations: 3.938 kB / 0.4911 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1635, allocations: 0 / 0.4911 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.1637, allocations: 159.4 kB / 0.4913 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.1638, allocations: 85.09 kB / 0.4914 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.1638, allocations: 0 / 0.4914 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.18e-05/0.1639, allocations: 3.938 kB / 0.4914 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.1639, allocations: 0 / 0.4914 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-06/0.164, allocations: 8 kB / 0.4914 GB, free: 7.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.13e-05/0.164, allocations: 91.27 kB / 0.4915 GB, free: 7.746 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.164, allocations: 0 / 0.4915 GB, free: 7.746 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.1643, allocations: 4 kB / 0.4915 GB, free: 7.742 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001148/0.1645, allocations: 99.59 kB / 0.4916 GB, free: 7.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.1646, allocations: 23.91 kB / 0.4916 GB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1646, allocations: 0 / 0.4916 GB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.713e-05/0.1646, allocations: 12 kB / 0.4916 GB, free: 7.602 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.165, allocations: 7.984 kB / 0.4916 GB, free: 7.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000428/0.1654, allocations: 145.8 kB / 0.4917 GB, free: 7.426 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1658, allocations: 0.6911 MB / 0.4924 GB, free: 6.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.076e-05/0.1658, allocations: 4 kB / 0.4924 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.968e-05/0.1659, allocations: 7.438 kB / 0.4924 GB, free: 6.699 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1659, allocations: 4 kB / 0.4924 GB, free: 6.695 MB / 382.1 MB Notification: Performance of Templates: time 0.003778/0.1696, allocations: 0.5238 MB / 0.4929 GB, free: 6.176 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches