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.001345/0.001345, allocations: 105.3 kB / 16.4 MB, free: 6.457 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.001323/0.001322, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.435/1.435, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.2151/0.2151, allocations: 43.53 MB / 314.1 MB, free: 452 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.002066/0.002066, allocations: 69.45 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1109, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002709/0.1137, allocations: 1.609 MB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008448/0.1145, allocations: 0.5152 MB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.203e-05/0.1146, allocations: 0 / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.1147, allocations: 15.86 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.079e-05/0.1148, allocations: 15.86 kB / 0.4895 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.115, allocations: 31.91 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.1151, allocations: 83.7 kB / 0.4896 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.1153, allocations: 44.09 kB / 0.4897 GB, free: 9.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.954e-05/0.1153, allocations: 31.86 kB / 0.4897 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.378e-05/0.1154, allocations: 31.84 kB / 0.4897 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.044e-05/0.1154, allocations: 4 kB / 0.4897 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.61e-05/0.1154, allocations: 8 kB / 0.4897 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.453e-05/0.1155, allocations: 11.94 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.1155, allocations: 35.8 kB / 0.4898 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000138/0.1157, allocations: 75.59 kB / 0.4898 GB, free: 9.773 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1157, allocations: 8 kB / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1157, allocations: 0 / 0.4899 GB, free: 9.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1157, allocations: 0 / 0.4899 GB, free: 9.766 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.0005477/0.1162, allocations: 391.1 kB / 0.4902 GB, free: 9.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1163, allocations: 11.89 kB / 0.4902 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.831e-05/0.1163, allocations: 42.73 kB / 0.4903 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.111e-05/0.1164, allocations: 12.84 kB / 0.4903 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.1166, allocations: 200.2 kB / 0.4905 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1167, allocations: 12.38 kB / 0.4905 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.139e-05/0.1167, allocations: 4.375 kB / 0.4905 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.1169, allocations: 81.72 kB / 0.4906 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1169, allocations: 4 kB / 0.4906 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.1169, allocations: 0 / 0.4906 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1169, allocations: 0 / 0.4906 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.104e-05/0.117, allocations: 35.98 kB / 0.4906 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005561/0.1175, allocations: 356.5 kB / 0.491 GB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.1177, allocations: 50.5 kB / 0.491 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.613e-05/0.1177, allocations: 16.89 kB / 0.491 GB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1177, allocations: 0 / 0.491 GB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/0.1179, allocations: 71.42 kB / 0.4911 GB, free: 8.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 3.085e-06/0.1179, allocations: 4 kB / 0.4911 GB, free: 8.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002196/0.1181, allocations: 93.48 kB / 0.4912 GB, free: 8.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.1181, allocations: 59.34 kB / 0.4912 GB, free: 8.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.1183, allocations: 140.5 kB / 0.4914 GB, free: 8.012 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.1183, allocations: 25.7 kB / 0.4914 GB, free: 7.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.1184, allocations: 100.1 kB / 0.4915 GB, free: 7.879 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.52e-05/0.1184, allocations: 23.94 kB / 0.4915 GB, free: 7.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.1185, allocations: 29.7 kB / 0.4915 GB, free: 7.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1186, allocations: 322.8 kB / 0.4918 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.879e-05/0.1186, allocations: 12 kB / 0.4919 GB, free: 7.484 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.516e-05/0.1187, allocations: 38.56 kB / 0.4919 GB, free: 7.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.186e-05/0.1188, allocations: 54.5 kB / 0.4919 GB, free: 7.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1188, allocations: 0 / 0.4919 GB, free: 7.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001462/0.1189, allocations: 85.58 kB / 0.492 GB, free: 7.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.119, allocations: 8 kB / 0.492 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.119, allocations: 3.938 kB / 0.492 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.119, allocations: 0 / 0.492 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.236e-05/0.1191, allocations: 11.98 kB / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.1191, allocations: 0 / 0.4921 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.345e-05/0.1191, allocations: 8 kB / 0.4921 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.1192, allocations: 4 kB / 0.4921 GB, free: 7.25 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 9.38e-05/0.1193, allocations: 125.7 kB / 0.4922 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.1193, allocations: 12.02 kB / 0.4922 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.1193, allocations: 20.66 kB / 0.4922 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1193, allocations: 0 / 0.4922 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1193, allocations: 0 / 0.4922 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1193, allocations: 192 / 0.4922 GB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.1197, allocations: 354.4 kB / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1197, allocations: 7.875 kB / 0.4926 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.485e-05/0.1198, allocations: 4 kB / 0.4926 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-06/0.1198, allocations: 3.984 kB / 0.4926 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.1198, allocations: 4 kB / 0.4926 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1198, allocations: 0 / 0.4926 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1198, allocations: 4 kB / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.12, allocations: 191.9 kB / 0.4928 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.1201, allocations: 89.09 kB / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.1201, allocations: 0 / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.051e-05/0.1202, allocations: 7.984 kB / 0.4929 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.776e-05/0.1203, allocations: 4 kB / 0.4929 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.1203, allocations: 16.03 kB / 0.4929 GB, free: 6.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.632e-05/0.1204, allocations: 107.2 kB / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1204, allocations: 0 / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002261/0.1206, allocations: 12 kB / 0.493 GB, free: 6.203 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.0005221/0.1211, allocations: 0.728 MB / 0.4937 GB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001345/0.1213, allocations: 47.98 kB / 0.4937 GB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1213, allocations: 4 kB / 0.4937 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.554e-05/0.1214, allocations: 23.98 kB / 0.4938 GB, free: 5.375 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.1217, allocations: 22.73 kB / 0.4938 GB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.1234, allocations: 1.521 MB / 0.4953 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.1237, allocations: 0.6963 MB / 0.496 GB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.425e-05/0.1238, allocations: 4.438 kB / 0.496 GB, free: 3.016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.655e-05/0.1238, allocations: 31.42 kB / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1238, allocations: 0 / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02407/0.1479, allocations: 2.239 MB / 0.4982 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.02, allocations: 16.73 kB / 0.4982 GB, free: 0.7266 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