Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 106.8 kB / 18.45 MB, free: 4.602 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.001152/0.001153, allocations: 183 kB / 19.38 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.194/0.194, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 75.88 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2823, allocations: 60.81 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002381/0.2848, allocations: 1.617 MB / 0.5211 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006281/0.2854, allocations: 483.8 kB / 0.5216 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.714e-05/0.2855, allocations: 1.469 kB / 0.5216 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.2856, allocations: 15.06 kB / 0.5216 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.128e-05/0.2857, allocations: 6.766 kB / 0.5216 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.2858, allocations: 47.67 kB / 0.5217 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.286, allocations: 82.11 kB / 0.5217 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.2861, allocations: 23.67 kB / 0.5218 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.211e-05/0.2861, allocations: 29.98 kB / 0.5218 GB, free: 2.047 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.394e-05/0.2862, allocations: 33.92 kB / 0.5218 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.2862, allocations: 7.562 kB / 0.5218 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.498e-05/0.2862, allocations: 5.969 kB / 0.5218 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.46e-05/0.2863, allocations: 21.44 kB / 0.5219 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.337e-05/0.2863, allocations: 40.36 kB / 0.5219 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.2864, allocations: 77.77 kB / 0.522 GB, free: 1.949 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2864, allocations: 1.062 kB / 0.522 GB, free: 1.949 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2864, allocations: 0 / 0.522 GB, free: 1.949 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.2865, allocations: 0 / 0.522 GB, free: 1.949 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004521/0.2869, allocations: 388.1 kB / 0.5223 GB, free: 1.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.287, allocations: 14.25 kB / 0.5224 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.287, allocations: 13.44 kB / 0.5224 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/0.2872, allocations: 201.6 kB / 0.5226 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.2872, allocations: 4.25 kB / 0.5226 GB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.2872, allocations: 9.969 kB / 0.5226 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001346/0.2874, allocations: 73.08 kB / 0.5226 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.2874, allocations: 0.7031 kB / 0.5226 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.2874, allocations: 13.08 kB / 0.5227 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2874, allocations: 1.188 kB / 0.5227 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.512e-05/0.2875, allocations: 32.31 kB / 0.5227 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000452/0.288, allocations: 362.8 kB / 0.523 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.752e-05/0.2881, allocations: 47.56 kB / 0.5231 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.851e-05/0.2881, allocations: 15.86 kB / 0.5231 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.2881, allocations: 2.078 kB / 0.5231 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.908e-05/0.2882, allocations: 70.69 kB / 0.5232 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.2882, allocations: 0 / 0.5232 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001845/0.2884, allocations: 98.33 kB / 0.5233 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.545e-05/0.2884, allocations: 51.41 kB / 0.5233 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.137e-05/0.2885, allocations: 138.4 kB / 0.5234 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.2885, allocations: 31.17 kB / 0.5235 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.2886, allocations: 97.73 kB / 0.5236 GB, free: 492 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.2886, allocations: 16.27 kB / 0.5236 GB, free: 480 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.2886, allocations: 32.48 kB / 0.5236 GB, free: 452 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.701e-05/0.2887, allocations: 319.9 kB / 0.5239 GB, free: 128 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.539e-05/0.2887, allocations: 14.94 kB / 0.5239 GB, free: 124 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.934e-05/0.2888, allocations: 37.31 kB / 0.524 GB, free: 92 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.255e-05/0.2888, allocations: 54.2 kB / 0.524 GB, free: 48 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2888, allocations: 4.75 kB / 0.524 GB, free: 44 kB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001381/0.289, allocations: 91.16 kB / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.289, allocations: 6.406 kB / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.289, allocations: 0 / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.289, allocations: 5 kB / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.967e-05/0.2891, allocations: 8.891 kB / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.2891, allocations: 1.312 kB / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.753e-05/0.2892, allocations: 14.22 kB / 0.5241 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.2892, allocations: 3.438 kB / 0.5241 GB, free: 15.97 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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 8.202e-05/0.2893, allocations: 128.4 kB / 0.5243 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.2893, allocations: 7.281 kB / 0.5243 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.016e-05/0.2893, allocations: 16.36 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.2894, allocations: 5.844 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2894, allocations: 0 / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.2894, allocations: 84.02 kB / 0.5244 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.2894, allocations: 5.812 kB / 0.5244 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.967e-05/0.2895, allocations: 5.547 kB / 0.5244 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.2896, allocations: 14.3 kB / 0.5244 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002136/0.2898, allocations: 152 kB / 0.5245 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002302/0.29, allocations: 273.9 kB / 0.5248 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.494e-05/0.2901, allocations: 21.92 kB / 0.5248 GB, free: 15.35 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.781e-05/0.2901, allocations: 106 kB / 0.5249 GB, free: 15.27 MB / 398.1 MB Notification: Performance of Backend: time 4.01e-07/0.2902, allocations: 0 / 0.5249 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003237/0.2905, allocations: 109.4 kB / 0.525 GB, free: 15.19 MB / 398.1 MB Notification: Performance of SimCode: time 0.0005626/0.2911, allocations: 0.6428 MB / 0.5257 GB, free: 14.55 MB / 398.1 MB Notification: Performance of Templates: time 0.003174/0.2942, allocations: 1.019 MB / 0.5267 GB, free: 14.44 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches