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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 107.2 kB / 19.69 MB, free: 2.199 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 185.2 kB / 22.98 MB, free: 5.062 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 207.6 MB / 233.7 MB, free: 10.01 MB / 190.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2499/0.2499, allocations: 44.22 MB / 330.2 MB, free: 9.566 MB / 270.1 MB
"
[Timeout remaining time 179]
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=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator")
translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660]
"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.002168/0.002168, allocations: 63.91 kB / 467.9 MB, free: 4.055 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.149, allocations: 61.03 MB / 0.5166 GB, free: 6.891 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002439/0.1514, allocations: 0.8508 MB / 0.5174 GB, free: 6.043 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0002711/0.1517, allocations: 43.88 kB / 0.5174 GB, free: 6 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1518, allocations: 3.938 kB / 0.5174 GB, free: 5.996 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.152, allocations: 7.922 kB / 0.5175 GB, free: 5.988 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 3.604e-05/0.152, allocations: 7.938 kB / 0.5175 GB, free: 5.98 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.1522, allocations: 19.98 kB / 0.5175 GB, free: 5.961 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001575/0.1523, allocations: 35.86 kB / 0.5175 GB, free: 5.926 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.1525, allocations: 15.98 kB / 0.5175 GB, free: 5.91 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 3.114e-05/0.1525, allocations: 15.88 kB / 0.5175 GB, free: 5.895 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 4.634e-05/0.1526, allocations: 11.92 kB / 0.5176 GB, free: 5.883 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.875e-05/0.1526, allocations: 4 kB / 0.5176 GB, free: 5.879 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.295e-05/0.1526, allocations: 4 kB / 0.5176 GB, free: 5.875 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.437e-05/0.1526, allocations: 11.92 kB / 0.5176 GB, free: 5.863 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 5.304e-05/0.1527, allocations: 19.92 kB / 0.5176 GB, free: 5.844 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.1528, allocations: 31.84 kB / 0.5176 GB, free: 5.812 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1528, allocations: 4 kB / 0.5176 GB, free: 5.809 MB / 398.1 MB
Notification: Performance of FrontEnd: time 1.423e-06/0.1528, allocations: 4 kB / 0.5176 GB, free: 5.805 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 6.532e-06/0.1528, allocations: 0 / 0.5176 GB, free: 5.805 MB / 398.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.0005199/0.1533, allocations: 291 kB / 0.5179 GB, free: 5.484 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.1534, allocations: 8.031 kB / 0.5179 GB, free: 5.477 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.987e-05/0.1534, allocations: 8.891 kB / 0.5179 GB, free: 5.469 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.1536, allocations: 118.5 kB / 0.518 GB, free: 5.328 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.1536, allocations: 4.375 kB / 0.518 GB, free: 5.324 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.1537, allocations: 4.375 kB / 0.518 GB, free: 5.32 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.1538, allocations: 54.25 kB / 0.5181 GB, free: 5.262 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1538, allocations: 192 / 0.5181 GB, free: 5.262 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.1538, allocations: 3.938 kB / 0.5181 GB, free: 5.258 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.1538, allocations: 0 / 0.5181 GB, free: 5.258 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 4.674e-05/0.1539, allocations: 15.94 kB / 0.5181 GB, free: 5.242 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005256/0.1544, allocations: 263.8 kB / 0.5184 GB, free: 4.941 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 6.023e-05/0.1544, allocations: 26.58 kB / 0.5184 GB, free: 4.906 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 1.964e-05/0.1545, allocations: 8.797 kB / 0.5184 GB, free: 4.895 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.1545, allocations: 64 / 0.5184 GB, free: 4.895 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.792e-05/0.1545, allocations: 51.41 kB / 0.5185 GB, free: 4.832 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1545, allocations: 0 / 0.5185 GB, free: 4.832 MB / 398.1 MB
Notification: Performance of matching and sorting (n=3): time 0.0001449/0.1547, allocations: 49.69 kB / 0.5185 GB, free: 4.777 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.1547, allocations: 51.41 kB / 0.5185 GB, free: 4.715 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.1548, allocations: 125.7 kB / 0.5187 GB, free: 4.582 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.1549, allocations: 25.7 kB / 0.5187 GB, free: 4.551 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.779e-05/0.1549, allocations: 104.1 kB / 0.5188 GB, free: 4.445 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.1549, allocations: 8.328 kB / 0.5188 GB, free: 4.438 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.155, allocations: 13.72 kB / 0.5188 GB, free: 4.418 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001459/0.1551, allocations: 326.8 kB / 0.5191 GB, free: 4.09 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.69e-05/0.1551, allocations: 4 kB / 0.5191 GB, free: 4.086 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.752e-05/0.1552, allocations: 25.83 kB / 0.5192 GB, free: 4.055 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 4.966e-05/0.1552, allocations: 29.7 kB / 0.5192 GB, free: 4.02 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1552, allocations: 0 / 0.5192 GB, free: 4.02 MB / 398.1 MB
Notification: Performance of matching and sorting (n=4) (initialization): time 8.283e-05/0.1553, allocations: 57.59 kB / 0.5192 GB, free: 3.957 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1553, allocations: 4 kB / 0.5192 GB, free: 3.953 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1553, allocations: 0 / 0.5192 GB, free: 3.953 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1553, allocations: 3.984 kB / 0.5192 GB, free: 3.949 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.08e-05/0.1554, allocations: 4 kB / 0.5192 GB, free: 3.945 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.1554, allocations: 0 / 0.5192 GB, free: 3.945 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.807e-05/0.1554, allocations: 8.031 kB / 0.5193 GB, free: 3.938 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.1554, allocations: 3.938 kB / 0.5193 GB, free: 3.934 MB / 398.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 8.438e-05/0.1555, allocations: 117.8 kB / 0.5194 GB, free: 3.809 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.1555, allocations: 4 kB / 0.5194 GB, free: 3.805 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.1555, allocations: 4 kB / 0.5194 GB, free: 3.793 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1555, allocations: 3.984 kB / 0.5194 GB, free: 3.789 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1555, allocations: 4 kB / 0.5194 GB, free: 3.785 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1555, allocations: 0 / 0.5194 GB, free: 3.785 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003033/0.1558, allocations: 277.6 kB / 0.5197 GB, free: 3.465 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1558, allocations: 0 / 0.5197 GB, free: 3.465 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.3e-05/0.1559, allocations: 7.938 kB / 0.5197 GB, free: 3.457 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1559, allocations: 0 / 0.5197 GB, free: 3.457 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1559, allocations: 3.984 kB / 0.5197 GB, free: 3.453 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1559, allocations: 3.938 kB / 0.5197 GB, free: 3.449 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1559, allocations: 0 / 0.5197 GB, free: 3.449 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001519/0.156, allocations: 143.5 kB / 0.5198 GB, free: 3.293 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.326e-05/0.1561, allocations: 12.05 kB / 0.5198 GB, free: 3.281 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.1561, allocations: 0 / 0.5198 GB, free: 3.281 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.929e-05/0.1561, allocations: 3.938 kB / 0.5198 GB, free: 3.277 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.859e-05/0.1562, allocations: 7.984 kB / 0.5198 GB, free: 3.27 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-06/0.1562, allocations: 3.938 kB / 0.5198 GB, free: 3.266 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 5.634e-05/0.1562, allocations: 95.27 kB / 0.5199 GB, free: 3.172 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1562, allocations: 0 / 0.5199 GB, free: 3.172 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002209/0.1564, allocations: 8 kB / 0.5199 GB, free: 3.164 MB / 398.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.563e-05/0.1565, allocations: 95.47 kB / 0.52 GB, free: 3.062 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 9.188e-05/0.1566, allocations: 16 kB / 0.52 GB, free: 3.047 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1566, allocations: 0 / 0.52 GB, free: 3.047 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 1.943e-05/0.1566, allocations: 12.25 kB / 0.52 GB, free: 3.035 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1569, allocations: 12 kB / 0.5201 GB, free: 3.023 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003291/0.1573, allocations: 157.9 kB / 0.5202 GB, free: 2.844 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.1576, allocations: 0.6818 MB / 0.5209 GB, free: 2.137 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 1.817e-05/0.1576, allocations: 4.062 kB / 0.5209 GB, free: 2.133 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.211e-05/0.1576, allocations: 19.41 kB / 0.5209 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of SimCode: time 3.1e-07/0.1576, allocations: 0 / 0.5209 GB, free: 2.113 MB / 398.1 MB
Notification: Performance of Templates: time 0.003731/0.1614, allocations: 0.5277 MB / 0.5214 GB, free: 1.586 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660]
(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) [Timeout 480]
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) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 5.279323129914701]