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.001646/0.001646, allocations: 102.3 kB / 16.27 MB, free: 5.973 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.001901/0.001901, allocations: 187.8 kB / 17.19 MB, free: 5.609 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.622/1.622, allocations: 205.1 MB / 223.1 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.2351/0.2351, allocations: 43.52 MB / 313.9 MB, free: 0.5391 MB / 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.00245/0.00245, allocations: 64.69 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1199, allocations: 57.8 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00293/0.1229, allocations: 1.602 MB / 442.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.1239, allocations: 0.5151 MB / 442.7 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.1241, allocations: 4 kB / 442.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.1243, allocations: 11.86 kB / 442.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.021e-05/0.1244, allocations: 11.88 kB / 442.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.1246, allocations: 47.88 kB / 442.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.1248, allocations: 79.69 kB / 442.9 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.1249, allocations: 28.16 kB / 442.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.903e-05/0.125, allocations: 27.92 kB / 442.9 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.1251, allocations: 39.7 kB / 443 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.1251, allocations: 8 kB / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.613e-05/0.1251, allocations: 8 kB / 443 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.091e-05/0.1252, allocations: 12 kB / 443 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.364e-05/0.1252, allocations: 39.73 kB / 443 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.1254, allocations: 71.78 kB / 443.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.1254, allocations: 0 / 443.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.1254, allocations: 3.938 kB / 443.1 MB, free: 4.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.1254, allocations: 0 / 443.1 MB, free: 4.289 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.0006493/0.1261, allocations: 383.2 kB / 443.5 MB, free: 3.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.1261, allocations: 19.89 kB / 443.5 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.1262, allocations: 34.75 kB / 443.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.657e-05/0.1262, allocations: 16.83 kB / 443.6 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.1265, allocations: 184.2 kB / 443.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.1265, allocations: 8.375 kB / 443.8 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.1266, allocations: 12.31 kB / 443.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.1267, allocations: 84.95 kB / 443.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1267, allocations: 0 / 443.9 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.1268, allocations: 4 kB / 443.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.1268, allocations: 3.984 kB / 443.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.861e-05/0.1269, allocations: 35.98 kB / 443.9 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006066/0.1275, allocations: 360.4 kB / 444.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.1276, allocations: 46.59 kB / 444.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.351e-05/0.1277, allocations: 20.84 kB / 444.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.1277, allocations: 0 / 444.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.1279, allocations: 67.39 kB / 444.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.1279, allocations: 0 / 444.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000258/0.1282, allocations: 89.47 kB / 444.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.1282, allocations: 59.39 kB / 444.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.128e-05/0.1283, allocations: 138.5 kB / 444.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.1283, allocations: 33.7 kB / 444.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.226e-05/0.1284, allocations: 100 kB / 444.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.1284, allocations: 15.8 kB / 444.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.659e-05/0.1285, allocations: 25.72 kB / 444.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.915e-05/0.1285, allocations: 318.8 kB / 445.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.577e-05/0.1286, allocations: 23.98 kB / 445.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.003e-05/0.1286, allocations: 34.58 kB / 445.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.182e-05/0.1287, allocations: 54.5 kB / 445.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1287, allocations: 0 / 445.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001072/0.1288, allocations: 89.53 kB / 445.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.1288, allocations: 4 kB / 445.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1288, allocations: 3.938 kB / 445.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1288, allocations: 4 kB / 445.3 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.295e-05/0.1289, allocations: 4.188 kB / 445.4 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1289, allocations: 4.062 kB / 445.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.092e-05/0.129, allocations: 20 kB / 445.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.129, allocations: 0 / 445.4 MB, free: 1.785 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 6.873e-05/0.1291, allocations: 130.9 kB / 445.5 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/0.1291, allocations: 7.906 kB / 445.5 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.498e-05/0.1291, allocations: 16.64 kB / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1291, allocations: 3.938 kB / 445.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1292, allocations: 0 / 445.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1292, allocations: 4 kB / 445.5 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.1294, allocations: 354.3 kB / 445.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1294, allocations: 0 / 445.9 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-05/0.1295, allocations: 4 kB / 445.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1295, allocations: 0 / 445.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1295, allocations: 4 kB / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1295, allocations: 0 / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1295, allocations: 0 / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001684/0.1297, allocations: 195.8 kB / 446.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.1297, allocations: 85.05 kB / 446.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.1297, allocations: 3.984 kB / 446.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.471e-05/0.1298, allocations: 4 kB / 446.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.32e-05/0.1299, allocations: 11.98 kB / 446.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.1299, allocations: 7.938 kB / 446.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.332e-05/0.1299, allocations: 102.1 kB / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1299, allocations: 0 / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.1302, allocations: 20 kB / 446.3 MB, free: 0.75 MB / 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 0.0003732/0.1306, allocations: 0.7319 MB / 447 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.1307, allocations: 51.91 kB / 447.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1307, allocations: 0 / 447.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.343e-05/0.1308, allocations: 19.94 kB / 447.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.1311, allocations: 20.17 kB / 447.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.1329, allocations: 1.53 MB / 448.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1332, allocations: 0.7077 MB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.963e-05/0.1333, allocations: 4.438 kB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.108e-05/0.1334, allocations: 27.42 kB / 449.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1334, allocations: 0 / 449.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02168/0.155, allocations: 2.198 MB / 451.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/7.748, allocations: 7.922 kB / 451.6 MB, free: 11.32 MB / 334.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