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: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 111.4 kB / 16.41 MB, free: 6.496 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.001756/0.001756, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.254/1.254, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.186/0.186, allocations: 43.53 MB / 314.1 MB, free: 468 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.001637/0.001637, allocations: 67.91 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.1006, allocations: 57.8 MB / 499.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002908/0.1035, allocations: 1.605 MB / 0.489 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009734/0.1045, allocations: 0.5268 MB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1047, allocations: 0 / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.1048, allocations: 11.86 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.477e-05/0.1049, allocations: 15.88 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.1052, allocations: 35.89 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.1053, allocations: 83.7 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.1055, allocations: 40.11 kB / 0.4897 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.386e-05/0.1056, allocations: 27.92 kB / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.284e-05/0.1057, allocations: 39.77 kB / 0.4897 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.1057, allocations: 4 kB / 0.4897 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.542e-05/0.1057, allocations: 8 kB / 0.4897 GB, free: 9.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.9e-05/0.1057, allocations: 15.94 kB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.204e-05/0.1058, allocations: 35.8 kB / 0.4898 GB, free: 9.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001656/0.106, allocations: 75.59 kB / 0.4898 GB, free: 9.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.106, allocations: 4 kB / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.106, allocations: 0 / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.106, allocations: 4 kB / 0.4899 GB, free: 9.785 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.000574/0.1066, allocations: 390.6 kB / 0.4902 GB, free: 9.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1066, allocations: 11.89 kB / 0.4902 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.663e-05/0.1067, allocations: 42.73 kB / 0.4903 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.1067, allocations: 16.84 kB / 0.4903 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.107, allocations: 196.2 kB / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.1071, allocations: 12.38 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.1071, allocations: 4.375 kB / 0.4905 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.1073, allocations: 77.8 kB / 0.4906 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1073, allocations: 3.938 kB / 0.4906 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.1073, allocations: 4 kB / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1073, allocations: 0 / 0.4906 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.351e-05/0.1074, allocations: 31.98 kB / 0.4906 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.108, allocations: 364.5 kB / 0.491 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001052/0.1081, allocations: 42.56 kB / 0.491 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.366e-05/0.1081, allocations: 20.83 kB / 0.491 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.1082, allocations: 0 / 0.491 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/0.1083, allocations: 71.42 kB / 0.4911 GB, free: 8.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 5.039e-06/0.1083, allocations: 7.984 kB / 0.4911 GB, free: 8.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002318/0.1085, allocations: 85.56 kB / 0.4912 GB, free: 8.254 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.1086, allocations: 59.34 kB / 0.4912 GB, free: 8.184 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1087, allocations: 144.4 kB / 0.4914 GB, free: 8.035 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1088, allocations: 25.7 kB / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.1088, allocations: 104.1 kB / 0.4915 GB, free: 7.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.1089, allocations: 23.94 kB / 0.4915 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.828e-05/0.1089, allocations: 29.7 kB / 0.4915 GB, free: 7.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.109, allocations: 322.8 kB / 0.4919 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-05/0.1091, allocations: 12 kB / 0.4919 GB, free: 7.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.988e-05/0.1091, allocations: 38.56 kB / 0.4919 GB, free: 7.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.844e-05/0.1092, allocations: 50.52 kB / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1092, allocations: 0 / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001427/0.1094, allocations: 85.58 kB / 0.492 GB, free: 7.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.1094, allocations: 8 kB / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1094, allocations: 3.938 kB / 0.492 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1094, allocations: 0 / 0.492 GB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.878e-05/0.1095, allocations: 11.98 kB / 0.4921 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.1095, allocations: 0 / 0.4921 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.755e-05/0.1096, allocations: 8 kB / 0.4921 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.1096, allocations: 4 kB / 0.4921 GB, free: 7.273 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.912e-05/0.1097, allocations: 125.7 kB / 0.4922 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.1097, allocations: 12.02 kB / 0.4922 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.1098, allocations: 16.66 kB / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1098, allocations: 0 / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1098, allocations: 0 / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1098, allocations: 0 / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.1102, allocations: 354.6 kB / 0.4926 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1102, allocations: 0 / 0.4926 GB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.139e-05/0.1102, allocations: 11.88 kB / 0.4926 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1102, allocations: 3.984 kB / 0.4926 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1102, allocations: 4 kB / 0.4926 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1103, allocations: 12 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1103, allocations: 0 / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.1105, allocations: 191.4 kB / 0.4928 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.23e-05/0.1106, allocations: 85.09 kB / 0.4928 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.1106, allocations: 3.938 kB / 0.4928 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.115e-05/0.1107, allocations: 7.984 kB / 0.4929 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.355e-05/0.1107, allocations: 8 kB / 0.4929 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.485e-06/0.1107, allocations: 8.047 kB / 0.4929 GB, free: 6.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.362e-05/0.1108, allocations: 103.3 kB / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.994e-06/0.1108, allocations: 0 / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1111, allocations: 15.94 kB / 0.493 GB, free: 6.227 MB / 382.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 0.0004652/0.1115, allocations: 0.7247 MB / 0.4937 GB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.1117, allocations: 55.95 kB / 0.4937 GB, free: 5.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1117, allocations: 4 kB / 0.4938 GB, free: 5.418 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.896e-05/0.1117, allocations: 19.98 kB / 0.4938 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.1121, allocations: 18.8 kB / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.1136, allocations: 1.525 MB / 0.4953 GB, free: 3.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.1138, allocations: 0.6963 MB / 0.496 GB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.976e-05/0.1139, allocations: 4.438 kB / 0.496 GB, free: 3.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.114, allocations: 27.42 kB / 0.496 GB, free: 3.012 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.114, allocations: 0 / 0.496 GB, free: 3.012 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.1348, allocations: 2.234 MB / 0.4982 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.402/7.537, allocations: 12.73 kB / 0.4982 GB, free: 0.7617 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/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