Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001146/0.001146, allocations: 112.1 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001289, allocations: 210.8 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.212/0.212, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 75.88 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2774, allocations: 62.42 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002533/0.2799, allocations: 1.637 MB / 0.5333 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007794/0.2807, allocations: 0.5134 MB / 0.5338 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.309e-05/0.2808, allocations: 1.375 kB / 0.5338 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.2809, allocations: 15.86 kB / 0.5338 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.44e-05/0.281, allocations: 14.62 kB / 0.5338 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.2811, allocations: 30.78 kB / 0.5338 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.2813, allocations: 74.08 kB / 0.5339 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2814, allocations: 32.58 kB / 0.5339 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.685e-05/0.2814, allocations: 33.42 kB / 0.5339 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.963e-05/0.2815, allocations: 30.72 kB / 0.534 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.2815, allocations: 14.81 kB / 0.534 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.2816, allocations: 5.5 kB / 0.534 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.121e-05/0.2816, allocations: 10.75 kB / 0.534 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.789e-05/0.2816, allocations: 37.41 kB / 0.534 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.2818, allocations: 69.12 kB / 0.5341 GB, free: 11.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2818, allocations: 4 kB / 0.5341 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2818, allocations: 0 / 0.5341 GB, free: 11.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.2818, allocations: 0 / 0.5341 GB, free: 11.64 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.0004825/0.2823, allocations: 398.2 kB / 0.5345 GB, free: 11.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2823, allocations: 12.25 kB / 0.5345 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.531e-05/0.2824, allocations: 10.39 kB / 0.5345 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.2826, allocations: 203.1 kB / 0.5347 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.2826, allocations: 7.125 kB / 0.5347 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.2826, allocations: 9.859 kB / 0.5347 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.2828, allocations: 75.98 kB / 0.5348 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.2828, allocations: 3.938 kB / 0.5348 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.2828, allocations: 1.375 kB / 0.5348 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2828, allocations: 1.375 kB / 0.5348 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.854e-05/0.2829, allocations: 47.16 kB / 0.5348 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000498/0.2834, allocations: 343.4 kB / 0.5352 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.791e-05/0.2835, allocations: 52.38 kB / 0.5352 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.247e-05/0.2835, allocations: 15.73 kB / 0.5352 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.2836, allocations: 4.031 kB / 0.5352 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001056/0.2837, allocations: 74.5 kB / 0.5353 GB, free: 10.44 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.2837, allocations: 0 / 0.5353 GB, free: 10.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001907/0.2839, allocations: 87.31 kB / 0.5354 GB, free: 10.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.2839, allocations: 52.88 kB / 0.5354 GB, free: 10.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.284, allocations: 137.8 kB / 0.5356 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.2841, allocations: 26.83 kB / 0.5356 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.708e-05/0.2841, allocations: 101 kB / 0.5357 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.2841, allocations: 18.84 kB / 0.5357 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.064e-05/0.2842, allocations: 24.73 kB / 0.5357 GB, free: 10.03 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.2843, allocations: 321.5 kB / 0.536 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.954e-05/0.2843, allocations: 16.81 kB / 0.5361 GB, free: 9.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.774e-05/0.2844, allocations: 34.34 kB / 0.5361 GB, free: 9.668 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.505e-05/0.2845, allocations: 64.91 kB / 0.5362 GB, free: 9.613 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2845, allocations: 0 / 0.5362 GB, free: 9.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001352/0.2846, allocations: 86.88 kB / 0.5362 GB, free: 9.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.2846, allocations: 10.02 kB / 0.5362 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2846, allocations: 0 / 0.5362 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.2847, allocations: 9.156 kB / 0.5363 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.04e-05/0.2847, allocations: 11.09 kB / 0.5363 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.2847, allocations: 1.312 kB / 0.5363 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.724e-05/0.2848, allocations: 20.09 kB / 0.5363 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.2848, allocations: 3.656 kB / 0.5363 GB, free: 9.523 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 7.703e-05/0.2849, allocations: 116.3 kB / 0.5364 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.2849, allocations: 8.984 kB / 0.5364 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.285, allocations: 10.03 kB / 0.5364 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.285, allocations: 3.938 kB / 0.5364 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.285, allocations: 1.25 kB / 0.5364 GB, free: 9.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.579e-05/0.285, allocations: 87.39 kB / 0.5365 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.2851, allocations: 5.125 kB / 0.5365 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.816e-05/0.2851, allocations: 11.25 kB / 0.5365 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.581e-05/0.2852, allocations: 11.23 kB / 0.5365 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002243/0.2854, allocations: 158.2 kB / 0.5367 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002317/0.2856, allocations: 277.3 kB / 0.537 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.612e-05/0.2857, allocations: 22.8 kB / 0.537 GB, free: 8.871 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.267e-05/0.2858, allocations: 109.5 kB / 0.5371 GB, free: 8.781 MB / 398.1 MB Notification: Performance of Backend: time 2.31e-07/0.2858, allocations: 0 / 0.5371 GB, free: 8.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003256/0.2861, allocations: 103.9 kB / 0.5372 GB, free: 8.703 MB / 398.1 MB Notification: Performance of SimCode: time 0.0005352/0.2866, allocations: 0.6369 MB / 0.5378 GB, free: 8.062 MB / 398.1 MB Notification: Performance of Templates: time 0.003049/0.2897, allocations: 0.9749 MB / 0.5388 GB, free: 7.566 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches