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.001076/0.001076, allocations: 106.3 kB / 16.41 MB, free: 6.449 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.001083/0.001083, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.459/1.459, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2247/0.2247, allocations: 43.52 MB / 314.1 MB, free: 464 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.00155/0.00155, allocations: 77.39 kB / 441.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1355, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002818/0.1383, allocations: 0.8207 MB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000281/0.1387, allocations: 47.81 kB / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.833e-05/0.1388, allocations: 0 / 0.4887 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.139, allocations: 11.81 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.886e-05/0.139, allocations: 4 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001525/0.1391, allocations: 15.98 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.1393, allocations: 39.91 kB / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.1394, allocations: 15.98 kB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.029e-05/0.1395, allocations: 15.92 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.424e-05/0.1395, allocations: 19.86 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.1396, allocations: 4 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.1396, allocations: 4 kB / 0.4888 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.1396, allocations: 7.938 kB / 0.4888 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.1397, allocations: 15.94 kB / 0.4889 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.1398, allocations: 39.83 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1398, allocations: 4 kB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1398, allocations: 0 / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.1399, allocations: 4 kB / 0.4889 GB, free: 10.75 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.0004928/0.1404, allocations: 343.4 kB / 0.4892 GB, free: 10.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.1404, allocations: 15.89 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.1405, allocations: 0.9375 kB / 0.4893 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.1407, allocations: 192.2 kB / 0.4894 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.1408, allocations: 4.312 kB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.1408, allocations: 12.38 kB / 0.4895 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001433/0.141, allocations: 50.25 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.141, allocations: 192 / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.141, allocations: 3.938 kB / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.141, allocations: 0 / 0.4895 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.305e-05/0.1411, allocations: 15.98 kB / 0.4895 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005526/0.1416, allocations: 292.7 kB / 0.4898 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.985e-05/0.1417, allocations: 22.58 kB / 0.4898 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.393e-05/0.1417, allocations: 16.86 kB / 0.4898 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.1417, allocations: 0 / 0.4898 GB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.994e-05/0.1418, allocations: 51.41 kB / 0.4899 GB, free: 9.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.1418, allocations: 0 / 0.4899 GB, free: 9.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001657/0.142, allocations: 57.47 kB / 0.4899 GB, free: 9.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.1421, allocations: 51.41 kB / 0.49 GB, free: 9.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.1422, allocations: 121.8 kB / 0.4901 GB, free: 9.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.1422, allocations: 29.69 kB / 0.4901 GB, free: 9.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.029e-05/0.1423, allocations: 88.2 kB / 0.4902 GB, free: 9.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.1423, allocations: 11.84 kB / 0.4902 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.1423, allocations: 17.72 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1425, allocations: 322.8 kB / 0.4906 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.929e-05/0.1425, allocations: 4 kB / 0.4906 GB, free: 8.836 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.081e-05/0.1425, allocations: 21.72 kB / 0.4906 GB, free: 8.809 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.261e-05/0.1426, allocations: 29.64 kB / 0.4906 GB, free: 8.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1426, allocations: 4 kB / 0.4906 GB, free: 8.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.024e-05/0.1427, allocations: 57.55 kB / 0.4907 GB, free: 8.707 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1427, allocations: 4 kB / 0.4907 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.1427, allocations: 7.984 kB / 0.4907 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1427, allocations: 0 / 0.4907 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.575e-05/0.1428, allocations: 4 kB / 0.4907 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1428, allocations: 4.031 kB / 0.4907 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.905e-05/0.1428, allocations: 0 / 0.4907 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.1428, allocations: 8.266 kB / 0.4907 GB, free: 8.68 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 0.0001239/0.143, allocations: 113.8 kB / 0.4908 GB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.143, allocations: 7.906 kB / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.143, allocations: 11.88 kB / 0.4908 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.143, allocations: 0 / 0.4908 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.1431, allocations: 4 kB / 0.4908 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1431, allocations: 0 / 0.4908 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002961/0.1434, allocations: 298.5 kB / 0.4911 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.1434, allocations: 0 / 0.4911 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.46e-05/0.1434, allocations: 7.984 kB / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1434, allocations: 0 / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.1434, allocations: 0 / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1434, allocations: 7.875 kB / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1435, allocations: 384 / 0.4911 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001553/0.1436, allocations: 159.4 kB / 0.4913 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.951e-05/0.1437, allocations: 81.17 kB / 0.4914 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.1437, allocations: 0 / 0.4914 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.043e-05/0.1438, allocations: 11.86 kB / 0.4914 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.82e-05/0.1438, allocations: 4 kB / 0.4914 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.1438, allocations: 0 / 0.4914 GB, free: 7.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.803e-05/0.1439, allocations: 91.27 kB / 0.4915 GB, free: 7.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1439, allocations: 0 / 0.4915 GB, free: 7.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002255/0.1441, allocations: 8 kB / 0.4915 GB, free: 7.781 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 9.095e-05/0.1442, allocations: 99.25 kB / 0.4916 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.277e-05/0.1443, allocations: 23.92 kB / 0.4916 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1443, allocations: 0 / 0.4916 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.609e-05/0.1443, allocations: 4 kB / 0.4916 GB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.1446, allocations: 14.25 kB / 0.4916 GB, free: 7.641 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003231/0.1449, allocations: 149.9 kB / 0.4917 GB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.1452, allocations: 0.6846 MB / 0.4924 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.33e-05/0.1452, allocations: 12.05 kB / 0.4924 GB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.186e-05/0.1452, allocations: 11.44 kB / 0.4924 GB, free: 6.734 MB / 382.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1452, allocations: 0 / 0.4924 GB, free: 6.734 MB / 382.1 MB Notification: Performance of Templates: time 0.002699/0.1479, allocations: 0.5204 MB / 0.4929 GB, free: 6.215 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