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.001179/0.00118, allocations: 112.7 kB / 18.45 MB, free: 4.645 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.00116/0.00116, allocations: 185.2 kB / 19.38 MB, free: 3.723 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.253/1.253, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.1883/0.1883, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 63.89 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2852, allocations: 60.81 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002571/0.2878, allocations: 1.614 MB / 0.5211 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007985/0.2886, allocations: 488 kB / 0.5216 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.671e-05/0.2887, allocations: 1.031 kB / 0.5216 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.2888, allocations: 11.59 kB / 0.5216 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.468e-05/0.2889, allocations: 11.02 kB / 0.5216 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.2891, allocations: 43.89 kB / 0.5217 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.2893, allocations: 80.55 kB / 0.5217 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.2894, allocations: 28.23 kB / 0.5218 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.037e-05/0.2895, allocations: 30.16 kB / 0.5218 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.2895, allocations: 35 kB / 0.5218 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.086e-05/0.2896, allocations: 10.53 kB / 0.5218 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.497e-05/0.2896, allocations: 5.438 kB / 0.5218 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.614e-05/0.2896, allocations: 17.89 kB / 0.5219 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.2897, allocations: 35.2 kB / 0.5219 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.2898, allocations: 82.2 kB / 0.522 GB, free: 1.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2898, allocations: 1.031 kB / 0.522 GB, free: 1.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2898, allocations: 0 / 0.522 GB, free: 1.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2898, allocations: 0 / 0.522 GB, free: 1.941 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.0004791/0.2903, allocations: 390.4 kB / 0.5223 GB, free: 1.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2904, allocations: 9.188 kB / 0.5223 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.2904, allocations: 14.98 kB / 0.5224 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.2907, allocations: 189.4 kB / 0.5225 GB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.2907, allocations: 12.09 kB / 0.5226 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.2907, allocations: 10.8 kB / 0.5226 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.2909, allocations: 75.64 kB / 0.5226 GB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.2909, allocations: 5 kB / 0.5226 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.291, allocations: 5.781 kB / 0.5226 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.291, allocations: 1.25 kB / 0.5226 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.348e-05/0.2911, allocations: 36.08 kB / 0.5227 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.2917, allocations: 357.8 kB / 0.523 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.2918, allocations: 51.7 kB / 0.5231 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.611e-05/0.2919, allocations: 16.89 kB / 0.5231 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.758e-06/0.2919, allocations: 4.938 kB / 0.5231 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/0.292, allocations: 67.2 kB / 0.5232 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.292, allocations: 0 / 0.5232 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002554/0.2923, allocations: 93.25 kB / 0.5232 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.816e-05/0.2923, allocations: 56.72 kB / 0.5233 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2925, allocations: 142.3 kB / 0.5234 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.2925, allocations: 34.77 kB / 0.5235 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.121e-05/0.2926, allocations: 98.66 kB / 0.5236 GB, free: 476 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.2926, allocations: 15.7 kB / 0.5236 GB, free: 464 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.2926, allocations: 28.61 kB / 0.5236 GB, free: 440 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.644e-05/0.2927, allocations: 320 kB / 0.5239 GB, free: 116 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.031e-05/0.2928, allocations: 14.34 kB / 0.5239 GB, free: 112 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.851e-05/0.2928, allocations: 41.17 kB / 0.524 GB, free: 76 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.411e-05/0.2929, allocations: 50.06 kB / 0.524 GB, free: 36 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2929, allocations: 192 / 0.524 GB, free: 36 kB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001544/0.2931, allocations: 92.42 kB / 0.5241 GB, free: 15.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.2931, allocations: 9.281 kB / 0.5241 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2931, allocations: 2.266 kB / 0.5241 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.2931, allocations: 8 kB / 0.5241 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.738e-05/0.2932, allocations: 8.547 kB / 0.5241 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.2932, allocations: 1.406 kB / 0.5241 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.207e-05/0.2933, allocations: 11 kB / 0.5241 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.2933, allocations: 2.219 kB / 0.5241 GB, free: 15.96 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.0001012/0.2934, allocations: 122.9 kB / 0.5243 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.2934, allocations: 9.141 kB / 0.5243 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.234e-05/0.2935, allocations: 16.11 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2935, allocations: 1.062 kB / 0.5243 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2935, allocations: 4 kB / 0.5243 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2935, allocations: 5.766 kB / 0.5243 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003615/0.2939, allocations: 341 kB / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2939, allocations: 0 / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.181e-05/0.2939, allocations: 8.469 kB / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.2939, allocations: 1.062 kB / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.294, allocations: 1.969 kB / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.294, allocations: 0 / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.294, allocations: 0.75 kB / 0.5246 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.2942, allocations: 197 kB / 0.5248 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.2943, allocations: 88.2 kB / 0.5249 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.2943, allocations: 3.375 kB / 0.5249 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.095e-05/0.2944, allocations: 4.25 kB / 0.5249 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.12e-05/0.2945, allocations: 10.53 kB / 0.5249 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.2945, allocations: 7.438 kB / 0.5249 GB, free: 15.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.52e-05/0.2946, allocations: 103.9 kB / 0.525 GB, free: 15.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2946, allocations: 4.062 kB / 0.525 GB, free: 15.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002353/0.2948, allocations: 17.05 kB / 0.525 GB, free: 15.12 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 0.0001008/0.2949, allocations: 97.25 kB / 0.5251 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.295, allocations: 43.98 kB / 0.5252 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2951, allocations: 0 / 0.5252 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.893e-05/0.2951, allocations: 25.2 kB / 0.5252 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.2954, allocations: 29.41 kB / 0.5252 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005165/0.2959, allocations: 242.9 kB / 0.5255 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.2962, allocations: 0.6949 MB / 0.5261 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.2962, allocations: 12.77 kB / 0.5262 GB, free: 14.1 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2962, allocations: 0 / 0.5262 GB, free: 14.1 MB / 398.1 MB Notification: Performance of Templates: time 0.002689/0.2989, allocations: 1.168 MB / 0.5273 GB, free: 13.96 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