Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 105 kB / 20.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 217.3 kB / 23.76 MB, free: 4.727 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.275/1.275, allocations: 207.6 MB / 234.5 MB, free: 9.973 MB / 190.1 MB " [Timeout remaining time 179] 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.1989/0.1989, allocations: 44.24 MB / 331 MB, free: 9.508 MB / 270.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 78.86 kB / 468.7 MB, free: 4 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1027, allocations: 61.02 MB / 0.5174 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002956/0.1057, allocations: 1.638 MB / 0.519 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.1066, allocations: 0.5346 MB / 0.5195 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.329e-05/0.1067, allocations: 4 kB / 0.5195 GB, free: 4.645 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.1068, allocations: 11.86 kB / 0.5195 GB, free: 4.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.914e-05/0.1068, allocations: 11.86 kB / 0.5195 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.107, allocations: 43.91 kB / 0.5195 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001422/0.1072, allocations: 79.77 kB / 0.5196 GB, free: 4.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1073, allocations: 24.2 kB / 0.5196 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.888e-05/0.1073, allocations: 35.84 kB / 0.5197 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.691e-05/0.1074, allocations: 35.8 kB / 0.5197 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.1074, allocations: 8 kB / 0.5197 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.638e-05/0.1074, allocations: 8 kB / 0.5197 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.541e-05/0.1074, allocations: 19.92 kB / 0.5197 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.585e-05/0.1075, allocations: 31.8 kB / 0.5198 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001374/0.1076, allocations: 71.66 kB / 0.5198 GB, free: 4.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1076, allocations: 3.938 kB / 0.5198 GB, free: 4.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.1076, allocations: 0 / 0.5198 GB, free: 4.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.1076, allocations: 0 / 0.5198 GB, free: 4.266 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005231/0.1082, allocations: 334.9 kB / 0.5202 GB, free: 3.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.1082, allocations: 8.031 kB / 0.5202 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.1082, allocations: 12.84 kB / 0.5202 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.1085, allocations: 138.3 kB / 0.5203 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.1085, allocations: 8.375 kB / 0.5203 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.1085, allocations: 8.375 kB / 0.5203 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.1086, allocations: 77.92 kB / 0.5204 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1087, allocations: 0 / 0.5204 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.1087, allocations: 4 kB / 0.5204 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1087, allocations: 4 kB / 0.5204 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.575e-05/0.1087, allocations: 35.97 kB / 0.5205 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005349/0.1093, allocations: 327.6 kB / 0.5208 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.1094, allocations: 46.55 kB / 0.5208 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.298e-05/0.1094, allocations: 12.89 kB / 0.5208 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.1094, allocations: 4 kB / 0.5208 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001156/0.1095, allocations: 75.36 kB / 0.5209 GB, free: 3.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1095, allocations: 0 / 0.5209 GB, free: 3.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000209/0.1098, allocations: 89.56 kB / 0.521 GB, free: 2.969 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.1098, allocations: 51.41 kB / 0.521 GB, free: 2.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.1099, allocations: 142.9 kB / 0.5212 GB, free: 2.758 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.1099, allocations: 25.7 kB / 0.5212 GB, free: 2.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.987e-05/0.11, allocations: 104.1 kB / 0.5213 GB, free: 2.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.11, allocations: 23.84 kB / 0.5213 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.67e-05/0.1101, allocations: 25.72 kB / 0.5213 GB, free: 2.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1102, allocations: 322.8 kB / 0.5216 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.114e-05/0.1102, allocations: 19.92 kB / 0.5217 GB, free: 2.223 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.042e-05/0.1103, allocations: 38.52 kB / 0.5217 GB, free: 2.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.845e-05/0.1104, allocations: 50.56 kB / 0.5217 GB, free: 2.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1104, allocations: 0 / 0.5217 GB, free: 2.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001346/0.1105, allocations: 85.58 kB / 0.5218 GB, free: 2.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1105, allocations: 7.938 kB / 0.5218 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.1105, allocations: 400 / 0.5218 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1105, allocations: 7.938 kB / 0.5218 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.567e-05/0.1106, allocations: 4 kB / 0.5218 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.1106, allocations: 4 kB / 0.5219 GB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.946e-05/0.1107, allocations: 24.12 kB / 0.5219 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.1107, allocations: 0 / 0.5219 GB, free: 1.98 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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.068e-05/0.1108, allocations: 117.8 kB / 0.522 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.1108, allocations: 11.91 kB / 0.522 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.409e-05/0.1108, allocations: 16.64 kB / 0.522 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1108, allocations: 0 / 0.522 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1108, allocations: 4 kB / 0.522 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1108, allocations: 0 / 0.522 GB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003283/0.1112, allocations: 325.5 kB / 0.5223 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1112, allocations: 0 / 0.5223 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.077e-05/0.1112, allocations: 4 kB / 0.5223 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.1112, allocations: 4 kB / 0.5223 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.1112, allocations: 4.188 kB / 0.5223 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1112, allocations: 0 / 0.5223 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1112, allocations: 3.938 kB / 0.5223 GB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.1114, allocations: 195.4 kB / 0.5225 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.451e-05/0.1114, allocations: 8.016 kB / 0.5225 GB, free: 1.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.1115, allocations: 8.016 kB / 0.5225 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.1115, allocations: 0 / 0.5225 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.1116, allocations: 11.98 kB / 0.5226 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.1116, allocations: 4 kB / 0.5226 GB, free: 1.199 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.456e-05/0.1117, allocations: 109.1 kB / 0.5227 GB, free: 1.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1117, allocations: 0 / 0.5227 GB, free: 1.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.1119, allocations: 15.94 kB / 0.5227 GB, free: 1.078 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,fallingEdge.not_u,booleanPulse.pulseStart) * Number of discrete states: 1 (fallingEdge.not_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 9.017e-05/0.112, allocations: 103.2 kB / 0.5228 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.1121, allocations: 43.91 kB / 0.5228 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1121, allocations: 0 / 0.5228 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.933e-05/0.1122, allocations: 23.94 kB / 0.5228 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.1125, allocations: 22.73 kB / 0.5229 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.1129, allocations: 236.8 kB / 0.5231 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.1133, allocations: 0.7003 MB / 0.5238 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.258e-05/0.1133, allocations: 15.44 kB / 0.5238 GB, free: 15.88 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1133, allocations: 0 / 0.5238 GB, free: 15.88 MB / 414.1 MB Notification: Performance of Templates: time 0.002616/0.1159, allocations: 1.161 MB / 0.5249 GB, free: 14.72 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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: 6.482809433015063]