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.001187/0.001187, allocations: 117.2 kB / 17.78 MB, free: 5.262 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.001231/0.001231, allocations: 185 kB / 18.71 MB, free: 4.34 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.437/1.437, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2488/0.2488, allocations: 44.18 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 67.88 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3841, allocations: 60.82 MB / 0.5189 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002856/0.387, allocations: 1.609 MB / 0.5205 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008418/0.3879, allocations: 487.6 kB / 0.5209 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.791e-05/0.388, allocations: 2.531 kB / 0.5209 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.3881, allocations: 9.984 kB / 0.5209 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.742e-05/0.3882, allocations: 11.23 kB / 0.521 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002085/0.3884, allocations: 48.45 kB / 0.521 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001495/0.3886, allocations: 76.95 kB / 0.5211 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.3887, allocations: 24.41 kB / 0.5211 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.013e-05/0.3888, allocations: 33.91 kB / 0.5211 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.191e-05/0.3889, allocations: 39.28 kB / 0.5212 GB, free: 2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.3889, allocations: 9.375 kB / 0.5212 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.424e-05/0.3889, allocations: 6.844 kB / 0.5212 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.648e-05/0.3889, allocations: 17.45 kB / 0.5212 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.594e-05/0.389, allocations: 36.06 kB / 0.5212 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.3891, allocations: 77.91 kB / 0.5213 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3892, allocations: 0 / 0.5213 GB, free: 1.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3892, allocations: 0 / 0.5213 GB, free: 1.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3892, allocations: 1.125 kB / 0.5213 GB, free: 1.926 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.0005556/0.3897, allocations: 389.7 kB / 0.5217 GB, free: 1.543 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3898, allocations: 9.344 kB / 0.5217 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.3898, allocations: 18.81 kB / 0.5217 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.39, allocations: 197.9 kB / 0.5219 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.3901, allocations: 4.375 kB / 0.5219 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.3901, allocations: 9.609 kB / 0.5219 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001593/0.3903, allocations: 77.12 kB / 0.522 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3903, allocations: 0.7969 kB / 0.522 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3903, allocations: 3.938 kB / 0.522 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3903, allocations: 2.625 kB / 0.522 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.353e-05/0.3904, allocations: 40.08 kB / 0.522 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000566/0.391, allocations: 362.3 kB / 0.5224 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.3911, allocations: 43.72 kB / 0.5224 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.353e-05/0.3911, allocations: 16.72 kB / 0.5224 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.499e-05/0.3912, allocations: 5.25 kB / 0.5224 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001219/0.3913, allocations: 66.03 kB / 0.5225 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.3913, allocations: 0 / 0.5225 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002338/0.3915, allocations: 93.45 kB / 0.5226 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.3916, allocations: 53.3 kB / 0.5226 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.3917, allocations: 134.5 kB / 0.5228 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.3917, allocations: 30.7 kB / 0.5228 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.914e-05/0.3918, allocations: 102.7 kB / 0.5229 GB, free: 468 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.629e-05/0.3918, allocations: 20.09 kB / 0.5229 GB, free: 452 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.3919, allocations: 28.03 kB / 0.5229 GB, free: 428 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.015e-05/0.3919, allocations: 319.9 kB / 0.5232 GB, free: 104 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.372e-05/0.392, allocations: 19.38 kB / 0.5233 GB, free: 96 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.768e-05/0.392, allocations: 36.81 kB / 0.5233 GB, free: 64 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.192e-05/0.3921, allocations: 54 kB / 0.5233 GB, free: 20 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3921, allocations: 1.312 kB / 0.5233 GB, free: 20 kB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001638/0.3923, allocations: 87.66 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.3923, allocations: 9.062 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3923, allocations: 1.641 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.3923, allocations: 5.031 kB / 0.5234 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.385e-05/0.3924, allocations: 12.28 kB / 0.5235 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.3924, allocations: 1.5 kB / 0.5235 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.091e-05/0.3925, allocations: 9.734 kB / 0.5235 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.3925, allocations: 11.59 kB / 0.5235 GB, free: 15.94 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 0.0001032/0.3926, allocations: 115.3 kB / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.3926, allocations: 9 kB / 0.5236 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.3927, allocations: 16.17 kB / 0.5236 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.3927, allocations: 0.6094 kB / 0.5236 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3927, allocations: 1.094 kB / 0.5236 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3927, allocations: 0.5625 kB / 0.5236 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003573/0.3931, allocations: 352.7 kB / 0.524 GB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3931, allocations: 4 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.824e-05/0.3931, allocations: 5.359 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3932, allocations: 0.75 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.3932, allocations: 0.9375 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.3932, allocations: 1.797 kB / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3932, allocations: 0 / 0.524 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.3934, allocations: 197.1 kB / 0.5242 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/0.3935, allocations: 88.95 kB / 0.5242 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.3935, allocations: 5.219 kB / 0.5242 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.3936, allocations: 9.938 kB / 0.5243 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/0.3937, allocations: 6.734 kB / 0.5243 GB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/0.3937, allocations: 3.141 kB / 0.5243 GB, free: 15.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.829e-05/0.3938, allocations: 107.5 kB / 0.5244 GB, free: 15.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3938, allocations: 0 / 0.5244 GB, free: 15.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.394, allocations: 14.84 kB / 0.5244 GB, free: 15.11 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,booleanPulse.pulseStart,fallingEdge.not_u) * 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 8.389e-05/0.3941, allocations: 94.97 kB / 0.5245 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001429/0.3943, allocations: 54.86 kB / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3943, allocations: 1.469 kB / 0.5245 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.558e-05/0.3943, allocations: 19.58 kB / 0.5245 GB, free: 14.99 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.3947, allocations: 22.47 kB / 0.5246 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005337/0.3952, allocations: 222 kB / 0.5248 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.3955, allocations: 0.6987 MB / 0.5255 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.222e-05/0.3956, allocations: 11.06 kB / 0.5255 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.3956, allocations: 16.88 kB / 0.5255 GB, free: 14.1 MB / 398.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3956, allocations: 0 / 0.5255 GB, free: 14.1 MB / 398.1 MB Notification: Performance of Templates: time 0.003474/0.3991, allocations: 0.9478 MB / 0.5264 GB, free: 14 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches