Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 100.1 kB / 17.63 MB, free: 5.523 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.001056/0.001056, allocations: 195.9 kB / 18.56 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 242.2 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 44.18 MB / 336.6 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 65.19 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1076, allocations: 60.82 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003056/0.1107, allocations: 1.612 MB / 470.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008042/0.1115, allocations: 482.8 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.145e-05/0.1116, allocations: 0 / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.1118, allocations: 15.86 kB / 471.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.267e-05/0.1118, allocations: 11.88 kB / 471.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.112, allocations: 39.89 kB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.1121, allocations: 83.7 kB / 471.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.1123, allocations: 24.22 kB / 471.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.842e-05/0.1124, allocations: 31.86 kB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.423e-05/0.1124, allocations: 39.84 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.1125, allocations: 4 kB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.593e-05/0.1125, allocations: 8 kB / 471.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.493e-05/0.1125, allocations: 15.92 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.886e-05/0.1126, allocations: 35.8 kB / 471.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001181/0.1127, allocations: 79.88 kB / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1127, allocations: 0 / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1127, allocations: 0 / 471.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.1127, allocations: 0 / 471.7 MB, free: 11.91 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.0005523/0.1133, allocations: 395.2 kB / 472.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.1133, allocations: 8.031 kB / 472.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.293e-05/0.1134, allocations: 8.844 kB / 472.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.1136, allocations: 192.2 kB / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1136, allocations: 384 / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/0.1136, allocations: 12.38 kB / 472.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.1137, allocations: 77.92 kB / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1138, allocations: 0 / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1138, allocations: 4 kB / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1138, allocations: 0 / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.619e-05/0.1139, allocations: 43.92 kB / 472.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005523/0.1144, allocations: 352.5 kB / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.995e-05/0.1145, allocations: 46.55 kB / 472.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.374e-05/0.1146, allocations: 24.89 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.1146, allocations: 0 / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.1148, allocations: 67.38 kB / 472.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1148, allocations: 3.938 kB / 472.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002024/0.115, allocations: 89.52 kB / 473 MB, free: 10.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.115, allocations: 55.41 kB / 473.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.925e-05/0.1151, allocations: 140.2 kB / 473.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.1151, allocations: 33.7 kB / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.1152, allocations: 108.1 kB / 473.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-05/0.1152, allocations: 15.81 kB / 473.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.075e-05/0.1153, allocations: 25.7 kB / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.994e-05/0.1154, allocations: 314.8 kB / 473.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.936e-05/0.1154, allocations: 27.86 kB / 473.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.53e-05/0.1155, allocations: 34.56 kB / 473.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.703e-05/0.1155, allocations: 50.58 kB / 473.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1156, allocations: 0 / 473.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001363/0.1157, allocations: 89.78 kB / 473.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1157, allocations: 8 kB / 473.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1157, allocations: 0 / 473.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.1157, allocations: 3.938 kB / 473.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.897e-05/0.1158, allocations: 11.98 kB / 473.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.1158, allocations: 8.125 kB / 473.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.179e-05/0.1159, allocations: 7.906 kB / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.1159, allocations: 8 kB / 473.9 MB, free: 9.449 MB / 350.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.394e-05/0.116, allocations: 117.8 kB / 474 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.116, allocations: 11.89 kB / 474.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.291e-05/0.116, allocations: 16.66 kB / 474.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.116, allocations: 0 / 474.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1161, allocations: 0 / 474.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1161, allocations: 3.938 kB / 474.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003066/0.1164, allocations: 350.5 kB / 474.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1164, allocations: 0 / 474.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.1164, allocations: 4 kB / 474.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1164, allocations: 0 / 474.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.1165, allocations: 4 kB / 474.4 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.1165, allocations: 3.984 kB / 474.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1165, allocations: 7.938 kB / 474.4 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.1167, allocations: 191.4 kB / 474.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.1167, allocations: 89.03 kB / 474.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.1167, allocations: 192 / 474.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.587e-05/0.1168, allocations: 8 kB / 474.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.1169, allocations: 11.92 kB / 474.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-06/0.1169, allocations: 0 / 474.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.113e-05/0.117, allocations: 108.8 kB / 474.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.117, allocations: 0 / 474.8 MB, free: 8.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.1172, allocations: 19.91 kB / 474.9 MB, free: 8.422 MB / 350.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.365e-05/0.1173, allocations: 99.31 kB / 474.9 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001276/0.1174, allocations: 51.92 kB / 475 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1174, allocations: 3.938 kB / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.485e-05/0.1175, allocations: 23.92 kB / 475 MB, free: 8.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.1178, allocations: 23.86 kB / 475.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004778/0.1182, allocations: 215.6 kB / 475.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.1185, allocations: 0.6924 MB / 476 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.128e-05/0.1185, allocations: 8.422 kB / 476 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.1186, allocations: 15.44 kB / 476 MB, free: 7.234 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1186, allocations: 0 / 476 MB, free: 7.234 MB / 350.1 MB Notification: Performance of Templates: time 0.003003/0.1216, allocations: 0.9506 MB / 476.9 MB, free: 6.293 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches