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.001122/0.001122, allocations: 110.9 kB / 17.04 MB, free: 6.07 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.001128/0.001129, allocations: 196 kB / 17.97 MB, free: 5.156 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.388/1.388, allocations: 205.1 MB / 223.8 MB, free: 12.29 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.1983/0.1983, allocations: 43.51 MB / 314.7 MB, free: 492 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.001515/0.001515, allocations: 69.81 kB / 384.2 MB, free: 56.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09792, allocations: 57.79 MB / 442 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002486/0.1004, allocations: 1.603 MB / 443.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006689/0.1011, allocations: 0.519 MB / 444.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.899e-05/0.1012, allocations: 4 kB / 444.1 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.914e-05/0.1013, allocations: 11.88 kB / 444.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.522e-05/0.1014, allocations: 11.86 kB / 444.1 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001459/0.1015, allocations: 35.91 kB / 444.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.1016, allocations: 87.75 kB / 444.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.979e-05/0.1017, allocations: 32.09 kB / 444.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.573e-05/0.1018, allocations: 31.8 kB / 444.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.33e-05/0.1018, allocations: 35.84 kB / 444.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.1019, allocations: 8 kB / 444.3 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.086e-05/0.1019, allocations: 4 kB / 444.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.025e-05/0.1019, allocations: 19.92 kB / 444.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.102, allocations: 39.78 kB / 444.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.951e-05/0.102, allocations: 71.73 kB / 444.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1021, allocations: 0 / 444.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1021, allocations: 0 / 444.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.1021, allocations: 0 / 444.5 MB, free: 3.633 MB / 318.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.0004171/0.1025, allocations: 396.5 kB / 444.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.898e-05/0.1025, allocations: 15.89 kB / 444.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.1026, allocations: 8.844 kB / 444.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.1027, allocations: 196.1 kB / 445.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.1028, allocations: 4.375 kB / 445.1 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.1028, allocations: 8.375 kB / 445.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001189/0.1029, allocations: 77.92 kB / 445.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.1029, allocations: 3.938 kB / 445.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.103, allocations: 0 / 445.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.103, allocations: 8 kB / 445.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.702e-05/0.103, allocations: 35.98 kB / 445.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.1035, allocations: 348.4 kB / 445.5 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.374e-05/0.1036, allocations: 50.56 kB / 445.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.1036, allocations: 16.89 kB / 445.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.774e-06/0.1036, allocations: 4 kB / 445.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.102e-05/0.1037, allocations: 71.36 kB / 445.7 MB, free: 2.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1037, allocations: 7.938 kB / 445.7 MB, free: 2.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001667/0.1039, allocations: 85.52 kB / 445.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.02e-05/0.1039, allocations: 51.41 kB / 445.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.218e-05/0.104, allocations: 145.8 kB / 446 MB, free: 1.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.948e-06/0.104, allocations: 29.7 kB / 446 MB, free: 1.906 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.02e-05/0.104, allocations: 104 kB / 446.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.1041, allocations: 15.8 kB / 446.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.1041, allocations: 29.7 kB / 446.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.879e-05/0.1041, allocations: 318.8 kB / 446.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.25e-05/0.1042, allocations: 15.98 kB / 446.5 MB, free: 1.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.162e-05/0.1042, allocations: 46.44 kB / 446.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.58e-05/0.1043, allocations: 50.58 kB / 446.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1043, allocations: 0 / 446.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001042/0.1044, allocations: 85.83 kB / 446.7 MB, free: 1.211 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.1044, allocations: 4 kB / 446.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1044, allocations: 4 kB / 446.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1044, allocations: 3.938 kB / 446.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.727e-05/0.1045, allocations: 15.92 kB / 446.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.1045, allocations: 0 / 446.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.802e-05/0.1046, allocations: 16.14 kB / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.1046, allocations: 4 kB / 446.7 MB, free: 1.164 MB / 318.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 4.918e-05/0.1047, allocations: 117.8 kB / 446.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.393e-05/0.1047, allocations: 15.88 kB / 446.8 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.628e-05/0.1047, allocations: 16.66 kB / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1047, allocations: 0 / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1047, allocations: 0 / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1047, allocations: 0 / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.1049, allocations: 358.3 kB / 447.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.105, allocations: 4 kB / 447.2 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.276e-05/0.105, allocations: 4 kB / 447.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.105, allocations: 0 / 447.2 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.105, allocations: 7.984 kB / 447.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.105, allocations: 0 / 447.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.105, allocations: 0 / 447.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.1052, allocations: 195.2 kB / 447.4 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.177e-05/0.1052, allocations: 89.08 kB / 447.5 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.1052, allocations: 4.031 kB / 447.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.1053, allocations: 7.984 kB / 447.5 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.1054, allocations: 4 kB / 447.5 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1054, allocations: 4 kB / 447.5 MB, free: 256 kB / 318.1 MB Notification: Performance of sorting global known variables: time 3.915e-05/0.1054, allocations: 107.2 kB / 447.6 MB, free: 148 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1054, allocations: 0 / 447.6 MB, free: 148 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.1057, allocations: 12 kB / 447.6 MB, free: 136 kB / 318.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 5.64e-05/0.1057, allocations: 99.25 kB / 447.7 MB, free: 28 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001312/0.1059, allocations: 47.98 kB / 447.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1059, allocations: 0 / 447.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.891e-05/0.1059, allocations: 27.92 kB / 447.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.1062, allocations: 34.39 kB / 447.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.1067, allocations: 211.3 kB / 448 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.1069, allocations: 0.7041 MB / 448.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.145e-05/0.1069, allocations: 8.422 kB / 448.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/0.107, allocations: 11.44 kB / 448.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.107, allocations: 0 / 448.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of Templates: time 0.003315/0.1103, allocations: 0.9435 MB / 449.7 MB, free: 14.01 MB / 334.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 -s gbode -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