Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 107.9 kB / 17.09 MB, free: 5.777 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.001069/0.001069, allocations: 190.9 kB / 18.02 MB, free: 4.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.232/1.232, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1883/0.1883, allocations: 43.52 MB / 314.8 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 61.47 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.0964, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002678/0.09911, allocations: 1.611 MB / 0.4901 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000868/0.1, allocations: 0.5205 MB / 0.4906 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.657e-05/0.1001, allocations: 7.938 kB / 0.4906 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.1002, allocations: 11.86 kB / 0.4906 GB, free: 9.621 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.183e-05/0.1003, allocations: 11.94 kB / 0.4906 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001783/0.1005, allocations: 39.84 kB / 0.4907 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.1006, allocations: 79.75 kB / 0.4908 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1007, allocations: 28.2 kB / 0.4908 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.872e-05/0.1008, allocations: 31.92 kB / 0.4908 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.073e-05/0.1009, allocations: 39.78 kB / 0.4909 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.1009, allocations: 4 kB / 0.4909 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.348e-05/0.1009, allocations: 8 kB / 0.4909 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.404e-05/0.1009, allocations: 11.94 kB / 0.4909 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.669e-05/0.101, allocations: 43.72 kB / 0.4909 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.1011, allocations: 67.73 kB / 0.491 GB, free: 9.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1011, allocations: 0 / 0.491 GB, free: 9.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1011, allocations: 4 kB / 0.491 GB, free: 9.258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1012, allocations: 0 / 0.491 GB, free: 9.258 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.0005108/0.1017, allocations: 399.1 kB / 0.4914 GB, free: 8.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.1017, allocations: 11.89 kB / 0.4914 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.1018, allocations: 12.84 kB / 0.4914 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.102, allocations: 188.2 kB / 0.4916 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.102, allocations: 8.312 kB / 0.4916 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.102, allocations: 8.375 kB / 0.4916 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.1022, allocations: 81.78 kB / 0.4917 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.1022, allocations: 0 / 0.4917 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1022, allocations: 4 kB / 0.4917 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.1022, allocations: 7.984 kB / 0.4917 GB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.253e-05/0.1023, allocations: 35.92 kB / 0.4917 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000507/0.1028, allocations: 348.5 kB / 0.492 GB, free: 8.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.999e-05/0.1029, allocations: 54.52 kB / 0.4921 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.004e-05/0.103, allocations: 20.89 kB / 0.4921 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.014e-05/0.103, allocations: 0 / 0.4921 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001092/0.1031, allocations: 71.38 kB / 0.4922 GB, free: 7.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.1031, allocations: 0 / 0.4922 GB, free: 7.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.000202/0.1033, allocations: 93.47 kB / 0.4923 GB, free: 7.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.943e-05/0.1034, allocations: 51.41 kB / 0.4923 GB, free: 7.711 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.756e-05/0.1035, allocations: 140.5 kB / 0.4925 GB, free: 7.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1035, allocations: 41.62 kB / 0.4925 GB, free: 7.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.657e-05/0.1036, allocations: 92.14 kB / 0.4926 GB, free: 7.426 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.1036, allocations: 27.69 kB / 0.4926 GB, free: 7.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.1036, allocations: 21.72 kB / 0.4926 GB, free: 7.371 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.202e-05/0.1037, allocations: 318.8 kB / 0.4929 GB, free: 7.051 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.612e-05/0.1038, allocations: 16 kB / 0.493 GB, free: 7.035 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.47e-05/0.1038, allocations: 38.56 kB / 0.493 GB, free: 6.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.874e-05/0.1039, allocations: 50.52 kB / 0.493 GB, free: 6.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1039, allocations: 0 / 0.493 GB, free: 6.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001323/0.104, allocations: 93.52 kB / 0.4931 GB, free: 6.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.1041, allocations: 4 kB / 0.4931 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1041, allocations: 0 / 0.4931 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1041, allocations: 7.938 kB / 0.4931 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.126e-05/0.1042, allocations: 4 kB / 0.4931 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1042, allocations: 8.062 kB / 0.4931 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.629e-05/0.1042, allocations: 12.06 kB / 0.4932 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-06/0.1043, allocations: 8.391 kB / 0.4932 GB, free: 6.789 MB / 382.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.664e-05/0.1044, allocations: 129.2 kB / 0.4933 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.1044, allocations: 7.906 kB / 0.4933 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.126e-05/0.1044, allocations: 8.719 kB / 0.4933 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.1044, allocations: 7.922 kB / 0.4933 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.1044, allocations: 0 / 0.4933 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.267e-05/0.1045, allocations: 89.02 kB / 0.4934 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.1045, allocations: 0 / 0.4934 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.258e-05/0.1046, allocations: 11.98 kB / 0.4934 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.1046, allocations: 4 kB / 0.4934 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002126/0.1048, allocations: 161.1 kB / 0.4936 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002207/0.1051, allocations: 274.6 kB / 0.4938 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.546e-05/0.1051, allocations: 28.02 kB / 0.4939 GB, free: 6.031 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.662e-05/0.1052, allocations: 107.2 kB / 0.494 GB, free: 5.926 MB / 382.1 MB Notification: Performance of Backend: time 3.81e-07/0.1052, allocations: 0 / 0.494 GB, free: 5.926 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003364/0.1055, allocations: 109.1 kB / 0.4941 GB, free: 5.816 MB / 382.1 MB Notification: Performance of SimCode: time 0.0005541/0.1061, allocations: 0.6414 MB / 0.4947 GB, free: 5.125 MB / 382.1 MB Notification: Performance of Templates: time 0.003215/0.1093, allocations: 1.047 MB / 0.4957 GB, free: 4.078 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches