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.001081/0.001081, allocations: 80.2 kB / 20.65 MB, free: 3.844 MB / 18.57 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.002189/0.002189, allocations: 173 kB / 24.06 MB, free: 456 kB / 18.57 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.045/1.045, allocations: 158.6 MB / 185.9 MB, free: 2.793 MB / 170.7 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.1508/0.1508, allocations: 32.38 MB / 270.7 MB, free: 14.53 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.993e-06/1.993e-06, allocations: 0 / 348.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.262e-05/2.462e-05, allocations: 10.25 kB / 348.1 MB, free: 9.176 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002612/0.002636, allocations: 1.641 MB / 349.8 MB, free: 7.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008553/0.003491, allocations: 0.4996 MB / 350.3 MB, free: 7.023 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.003593, allocations: 3.938 kB / 350.3 MB, free: 7.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.00372, allocations: 15.86 kB / 350.3 MB, free: 7.004 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.803e-05/0.003778, allocations: 11.81 kB / 350.3 MB, free: 6.992 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002/0.003978, allocations: 43.89 kB / 350.3 MB, free: 6.949 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.004115, allocations: 83.7 kB / 350.4 MB, free: 6.867 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.004229, allocations: 24.11 kB / 350.4 MB, free: 6.844 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.927e-05/0.004309, allocations: 39.91 kB / 350.5 MB, free: 6.805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.413e-05/0.004383, allocations: 27.89 kB / 350.5 MB, free: 6.777 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.004407, allocations: 8 kB / 350.5 MB, free: 6.77 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.175e-05/0.004418, allocations: 4 kB / 350.5 MB, free: 6.766 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.805e-05/0.004446, allocations: 15.92 kB / 350.5 MB, free: 6.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.531e-05/0.004482, allocations: 27.91 kB / 350.6 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.004609, allocations: 51.81 kB / 350.6 MB, free: 6.672 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.004611, allocations: 4 kB / 350.6 MB, free: 6.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.004611, allocations: 0 / 350.6 MB, free: 6.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.004616, allocations: 0 / 350.6 MB, free: 6.668 MB / 282.7 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.0004336/0.005049, allocations: 435.9 kB / 351 MB, free: 6.203 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.005095, allocations: 8.031 kB / 351 MB, free: 6.195 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.005132, allocations: 12.89 kB / 351.1 MB, free: 6.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.005266, allocations: 144.4 kB / 351.2 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.005283, allocations: 8.375 kB / 351.2 MB, free: 6.008 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.246e-05/0.005305, allocations: 12.38 kB / 351.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.005407, allocations: 74.88 kB / 351.3 MB, free: 5.914 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.005415, allocations: 4.172 kB / 351.3 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.005425, allocations: 4.375 kB / 351.3 MB, free: 5.906 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.005431, allocations: 7.938 kB / 351.3 MB, free: 5.898 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.884e-05/0.00547, allocations: 15.98 kB / 351.3 MB, free: 5.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003793/0.005849, allocations: 308.1 kB / 351.6 MB, free: 5.555 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.501e-05/0.005924, allocations: 43.03 kB / 351.7 MB, free: 5.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.961e-05/0.005944, allocations: 11.72 kB / 351.7 MB, free: 5.484 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.968e-06/0.005954, allocations: 4 kB / 351.7 MB, free: 5.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.948e-05/0.006043, allocations: 77.02 kB / 351.8 MB, free: 5.391 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.006045, allocations: 0 / 351.8 MB, free: 5.391 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001527/0.006198, allocations: 69.62 kB / 351.8 MB, free: 5.316 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.006224, allocations: 51.41 kB / 351.9 MB, free: 5.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.102e-05/0.006295, allocations: 185.9 kB / 352.1 MB, free: 5.055 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.006306, allocations: 25.7 kB / 352.1 MB, free: 5.023 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.293e-05/0.006349, allocations: 147 kB / 352.2 MB, free: 4.875 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.006376, allocations: 23.97 kB / 352.2 MB, free: 4.852 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-05/0.006413, allocations: 31.36 kB / 352.3 MB, free: 4.812 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.241e-05/0.006475, allocations: 0.4961 MB / 352.8 MB, free: 4.305 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.779e-05/0.006493, allocations: 11.94 kB / 352.8 MB, free: 4.293 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.19e-05/0.006525, allocations: 39.03 kB / 352.8 MB, free: 4.242 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.761e-05/0.006582, allocations: 51.34 kB / 352.9 MB, free: 4.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.006585, allocations: 4 kB / 352.9 MB, free: 4.176 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.58e-05/0.006681, allocations: 77.52 kB / 353 MB, free: 4.094 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.006695, allocations: 4 kB / 353 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.0067, allocations: 4 kB / 353 MB, free: 4.086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.006711, allocations: 3.938 kB / 353 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.602e-05/0.006777, allocations: 12.06 kB / 353 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.006781, allocations: 0 / 353 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.335e-05/0.006825, allocations: 7.984 kB / 353 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.00683, allocations: 4 kB / 353 MB, free: 4.059 MB / 282.7 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 6.384e-05/0.006894, allocations: 168.5 kB / 353.2 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.006909, allocations: 7.953 kB / 353.2 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/0.006939, allocations: 12.38 kB / 353.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.006941, allocations: 0 / 353.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.006944, allocations: 4 kB / 353.2 MB, free: 3.863 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.006948, allocations: 0 / 353.2 MB, free: 3.863 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.007171, allocations: 314 kB / 353.5 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.007172, allocations: 0 / 353.5 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.554e-05/0.007208, allocations: 4 kB / 353.5 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.00721, allocations: 0 / 353.5 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.257e-06/0.007219, allocations: 4 kB / 353.5 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.00722, allocations: 3.938 kB / 353.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.007222, allocations: 0 / 353.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.007366, allocations: 227.8 kB / 353.7 MB, free: 3.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.05e-05/0.007376, allocations: 7.891 kB / 353.7 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.007392, allocations: 4 kB / 353.7 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.248e-05/0.007465, allocations: 4.016 kB / 353.7 MB, free: 3.254 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.007507, allocations: 15.98 kB / 353.7 MB, free: 3.238 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.007513, allocations: 0 / 353.7 MB, free: 3.238 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.444e-05/0.007548, allocations: 131.2 kB / 353.9 MB, free: 3.109 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007548, allocations: 4 kB / 353.9 MB, free: 3.105 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002367/0.007784, allocations: 19.94 kB / 353.9 MB, free: 3.086 MB / 282.7 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 6.539e-05/0.00785, allocations: 95.95 kB / 354 MB, free: 2.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.921e-05/0.007939, allocations: 35.66 kB / 354 MB, free: 2.941 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.00794, allocations: 0 / 354 MB, free: 2.941 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.025e-05/0.00798, allocations: 35.55 kB / 354.1 MB, free: 2.902 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.00826, allocations: 20.05 kB / 354.1 MB, free: 2.883 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.00863, allocations: 205.3 kB / 354.3 MB, free: 2.656 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.101e-05/0.008661, allocations: 60.05 kB / 354.3 MB, free: 2.578 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.397e-05/0.008695, allocations: 15.97 kB / 354.4 MB, free: 2.562 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.008751, allocations: 74.2 kB / 354.4 MB, free: 2.488 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.008752, allocations: 0 / 354.4 MB, free: 2.488 MB / 282.7 MB Notification: Performance of Templates: time 0.003345/0.0121, allocations: 1.039 MB / 355.5 MB, free: 1.473 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.170729051809758]