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.0009998/0.0009999, allocations: 97.59 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009243/0.0009244, allocations: 204 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.7 MB / 247.5 MB, free: 9.676 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1864/0.1864, allocations: 46.18 MB / 345.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002524, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.09478, allocations: 63.56 MB / 483.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001714/0.09652, allocations: 1.338 MB / 485.1 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008316/0.09738, allocations: 0.4949 MB / 485.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.81e-05/0.09747, allocations: 4 kB / 485.6 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.072e-05/0.09756, allocations: 7.922 kB / 485.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.318e-05/0.09762, allocations: 11.86 kB / 485.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.09779, allocations: 31.97 kB / 485.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.09791, allocations: 75.72 kB / 485.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.09802, allocations: 36.19 kB / 485.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.347e-05/0.09807, allocations: 23.86 kB / 485.7 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.829e-05/0.09813, allocations: 23.86 kB / 485.8 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.09816, allocations: 4 kB / 485.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.09818, allocations: 0 / 485.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.477e-05/0.09821, allocations: 15.92 kB / 485.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.737e-05/0.09827, allocations: 49.52 kB / 485.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.066e-05/0.09835, allocations: 56.11 kB / 485.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.09836, allocations: 0 / 485.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09837, allocations: 0 / 485.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.09838, allocations: 0 / 485.9 MB, free: 1.969 MB / 350.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.0004811/0.09886, allocations: 375.3 kB / 486.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.09891, allocations: 8.875 kB / 486.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.09895, allocations: 12.78 kB / 486.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.09914, allocations: 188.2 kB / 486.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.09917, allocations: 8.375 kB / 486.5 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.0992, allocations: 12.38 kB / 486.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.09934, allocations: 73.98 kB / 486.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.09935, allocations: 0 / 486.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.09937, allocations: 7.938 kB / 486.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.09938, allocations: 4 kB / 486.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.811e-05/0.09947, allocations: 31.98 kB / 486.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005465/0.1, allocations: 368.4 kB / 487 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.507e-05/0.1001, allocations: 42.56 kB / 487 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.726e-05/0.1002, allocations: 20.89 kB / 487 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.166e-06/0.1002, allocations: 0 / 487 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001395/0.1003, allocations: 67.44 kB / 487.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.543e-06/0.1004, allocations: 7.938 kB / 487.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002001/0.1006, allocations: 89.5 kB / 487.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.1006, allocations: 59.41 kB / 487.2 MB, free: 448 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.1007, allocations: 137.7 kB / 487.4 MB, free: 300 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.1007, allocations: 29.7 kB / 487.4 MB, free: 264 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.486e-05/0.1008, allocations: 96.12 kB / 487.5 MB, free: 164 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.1008, allocations: 19.8 kB / 487.5 MB, free: 144 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.1009, allocations: 21.7 kB / 487.5 MB, free: 116 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.101, allocations: 322.8 kB / 487.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.682e-05/0.101, allocations: 16 kB / 487.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.602e-05/0.1011, allocations: 42.44 kB / 487.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.203e-05/0.1012, allocations: 46.58 kB / 488 MB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1012, allocations: 0 / 488 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001372/0.1013, allocations: 97.81 kB / 488 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1013, allocations: 10.34 kB / 488.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1014, allocations: 0 / 488.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.1014, allocations: 3.938 kB / 488.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.373e-05/0.1014, allocations: 15.92 kB / 488.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.1015, allocations: 3.938 kB / 488.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.806e-05/0.1015, allocations: 8 kB / 488.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1015, allocations: 4 kB / 488.1 MB, free: 15.52 MB / 366.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 9.337e-05/0.1016, allocations: 129.9 kB / 488.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.1017, allocations: 7.906 kB / 488.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.1017, allocations: 12.66 kB / 488.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.1017, allocations: 4 kB / 488.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1017, allocations: 0 / 488.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1017, allocations: 0 / 488.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003282/0.1021, allocations: 350.3 kB / 488.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1021, allocations: 0 / 488.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.803e-05/0.1021, allocations: 8 kB / 488.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1021, allocations: 8 kB / 488.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1022, allocations: 3.984 kB / 488.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1022, allocations: 0 / 488.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1022, allocations: 0 / 488.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.1024, allocations: 195.3 kB / 488.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.1024, allocations: 85 kB / 488.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.1024, allocations: 0 / 488.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.619e-05/0.1025, allocations: 16.06 kB / 488.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.1026, allocations: 7.984 kB / 488.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.1026, allocations: 0 / 488.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.194e-05/0.1027, allocations: 107.2 kB / 489 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1027, allocations: 0 / 489 MB, free: 14.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002315/0.1029, allocations: 16 kB / 489 MB, free: 14.49 MB / 366.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 7.779e-05/0.103, allocations: 91.25 kB / 489.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.1031, allocations: 47.92 kB / 489.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1031, allocations: 4.125 kB / 489.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.721e-05/0.1032, allocations: 23.98 kB / 489.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.1035, allocations: 24.05 kB / 489.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004516/0.1039, allocations: 268.7 kB / 489.5 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.1042, allocations: 0.6932 MB / 490.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.92e-05/0.1042, allocations: 11.44 kB / 490.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1042, allocations: 0 / 490.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of Templates: time 0.002319/0.1066, allocations: 1.132 MB / 491.3 MB, free: 12.14 MB / 366.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