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.001038/0.001038, allocations: 114.7 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1918/0.1918, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 67.89 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09328/0.0946, allocations: 62.44 MB / 481.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002605/0.09724, allocations: 1.633 MB / 483.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008065/0.09806, allocations: 0.5026 MB / 483.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.727e-05/0.09814, allocations: 4 kB / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.744e-05/0.09824, allocations: 7.875 kB / 483.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.197e-05/0.0983, allocations: 11.86 kB / 483.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.09846, allocations: 43.89 kB / 483.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.0986, allocations: 79.77 kB / 483.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.09872, allocations: 28.2 kB / 483.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.219e-05/0.09877, allocations: 31.81 kB / 483.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.073e-05/0.09884, allocations: 35.83 kB / 483.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.09886, allocations: 4 kB / 483.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.287e-05/0.09888, allocations: 8 kB / 483.8 MB, free: 2.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.476e-05/0.09891, allocations: 19.92 kB / 483.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.902e-05/0.09896, allocations: 39.8 kB / 483.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.09908, allocations: 75.66 kB / 484 MB, free: 2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09909, allocations: 3.938 kB / 484 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09909, allocations: 0 / 484 MB, free: 1.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.0991, allocations: 0 / 484 MB, free: 1.996 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.0004758/0.09958, allocations: 383.3 kB / 484.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.09962, allocations: 8.031 kB / 484.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.09965, allocations: 12.75 kB / 484.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/0.09987, allocations: 200.1 kB / 484.6 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.09989, allocations: 8.375 kB / 484.6 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.219e-05/0.09991, allocations: 4.375 kB / 484.6 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.1, allocations: 81.92 kB / 484.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1001, allocations: 0 / 484.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1001, allocations: 4 kB / 484.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1001, allocations: 0 / 484.7 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.242e-05/0.1002, allocations: 31.98 kB / 484.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000492/0.1007, allocations: 368.4 kB / 485 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.508e-05/0.1008, allocations: 42.56 kB / 485.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.121e-05/0.1008, allocations: 16.89 kB / 485.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.1008, allocations: 0 / 485.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/0.1009, allocations: 75.38 kB / 485.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.1009, allocations: 0 / 485.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001833/0.1011, allocations: 85.52 kB / 485.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.138e-05/0.1012, allocations: 55.41 kB / 485.3 MB, free: 476 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.1013, allocations: 140.2 kB / 485.4 MB, free: 328 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.603e-05/0.1013, allocations: 25.7 kB / 485.5 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.1014, allocations: 104 kB / 485.6 MB, free: 188 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.942e-05/0.1014, allocations: 19.89 kB / 485.6 MB, free: 168 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.1014, allocations: 29.7 kB / 485.6 MB, free: 132 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1015, allocations: 318.8 kB / 485.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.861e-05/0.1016, allocations: 19.92 kB / 486 MB, free: 15.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.705e-05/0.1016, allocations: 42.56 kB / 486 MB, free: 15.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.438e-05/0.1017, allocations: 50.88 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1017, allocations: 0 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001199/0.1018, allocations: 85.53 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.1019, allocations: 11.94 kB / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1019, allocations: 0 / 486.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.1019, allocations: 3.938 kB / 486.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.9e-05/0.102, allocations: 15.98 kB / 486.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.102, allocations: 0 / 486.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.809e-05/0.102, allocations: 7.906 kB / 486.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.102, allocations: 4 kB / 486.2 MB, free: 15.55 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 8.277e-05/0.1021, allocations: 121 kB / 486.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.488e-05/0.1022, allocations: 15.83 kB / 486.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.1022, allocations: 24.66 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1022, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.1022, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.1022, allocations: 0 / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.1025, allocations: 354.4 kB / 486.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1025, allocations: 0 / 486.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.1026, allocations: 4 kB / 486.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1026, allocations: 4 kB / 486.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.1026, allocations: 4.188 kB / 486.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.1026, allocations: 3.984 kB / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.1026, allocations: 7.938 kB / 486.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001978/0.1028, allocations: 191.3 kB / 486.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.819e-05/0.1029, allocations: 89.03 kB / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.1029, allocations: 0 / 487 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.414e-05/0.103, allocations: 4 kB / 487 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.103, allocations: 16.05 kB / 487 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.103, allocations: 0 / 487 MB, free: 14.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.757e-05/0.1031, allocations: 107.2 kB / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1031, allocations: 0 / 487.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.1033, allocations: 15.91 kB / 487.1 MB, free: 14.51 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 8.009e-05/0.1034, allocations: 99.19 kB / 487.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.1035, allocations: 43.92 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.1036, allocations: 0 / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.633e-05/0.1036, allocations: 36.05 kB / 487.3 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.0002751/0.1039, allocations: 18.12 kB / 487.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004013/0.1043, allocations: 198.6 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.1046, allocations: 0.6963 MB / 488.2 MB, free: 13.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.204e-05/0.1046, allocations: 4.438 kB / 488.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.1046, allocations: 15.44 kB / 488.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1046, allocations: 4 kB / 488.2 MB, free: 13.34 MB / 366.1 MB Notification: Performance of Templates: time 0.003046/0.1077, allocations: 0.9145 MB / 489.1 MB, free: 12.43 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 -s gbode -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