Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2498/0.2498, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001365, allocations: 76.66 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1151, allocations: 62.44 MB / 480.1 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002845/0.118, allocations: 1.622 MB / 481.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008742/0.1189, allocations: 0.5143 MB / 482.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.033e-05/0.119, allocations: 4 kB / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.1191, allocations: 11.81 kB / 482.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.86e-05/0.1192, allocations: 11.88 kB / 482.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002272/0.1194, allocations: 35.89 kB / 482.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001531/0.1196, allocations: 75.78 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.1197, allocations: 36.2 kB / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.842e-05/0.1198, allocations: 27.86 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.326e-05/0.1199, allocations: 31.84 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.1199, allocations: 4 kB / 482.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.525e-05/0.12, allocations: 8 kB / 482.5 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.129e-05/0.12, allocations: 15.94 kB / 482.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.452e-05/0.12, allocations: 39.78 kB / 482.6 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.1202, allocations: 67.95 kB / 482.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1202, allocations: 0 / 482.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1202, allocations: 0 / 482.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.1202, allocations: 4 kB / 482.6 MB, free: 2.664 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.0006336/0.1209, allocations: 395.1 kB / 483 MB, free: 2.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.1209, allocations: 8.031 kB / 483 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.121, allocations: 38.75 kB / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.124e-05/0.121, allocations: 8.844 kB / 483.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.1212, allocations: 200.1 kB / 483.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.1213, allocations: 4.375 kB / 483.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.1213, allocations: 8.375 kB / 483.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.1215, allocations: 77.8 kB / 483.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.1215, allocations: 3.938 kB / 483.4 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.1215, allocations: 7.984 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.1215, allocations: 4 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.893e-05/0.1216, allocations: 27.98 kB / 483.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005121/0.1221, allocations: 360.4 kB / 483.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.645e-05/0.1222, allocations: 42.58 kB / 483.8 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.217e-05/0.1223, allocations: 20.86 kB / 483.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.716e-06/0.1223, allocations: 4 kB / 483.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001381/0.1224, allocations: 67.33 kB / 483.9 MB, free: 1.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 5.721e-06/0.1224, allocations: 3.984 kB / 483.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001887/0.1226, allocations: 97.52 kB / 484 MB, free: 1.133 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.1227, allocations: 51.41 kB / 484 MB, free: 1.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.906e-05/0.1228, allocations: 140.3 kB / 484.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.1228, allocations: 29.7 kB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.1228, allocations: 96.05 kB / 484.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.1229, allocations: 19.88 kB / 484.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.1229, allocations: 25.72 kB / 484.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.123, allocations: 330.8 kB / 484.7 MB, free: 420 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.754e-05/0.1231, allocations: 12 kB / 484.7 MB, free: 408 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.897e-05/0.1231, allocations: 46.5 kB / 484.7 MB, free: 352 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.289e-05/0.1232, allocations: 50.55 kB / 484.8 MB, free: 292 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1232, allocations: 0 / 484.8 MB, free: 292 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001396/0.1234, allocations: 97.86 kB / 484.9 MB, free: 188 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.1234, allocations: 4 kB / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1234, allocations: 3.938 kB / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.1234, allocations: 4 kB / 484.9 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.447e-05/0.1235, allocations: 7.938 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.1235, allocations: 4 kB / 484.9 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.1236, allocations: 11.89 kB / 484.9 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.1236, allocations: 4 kB / 484.9 MB, free: 148 kB / 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 8.613e-05/0.1237, allocations: 117.8 kB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.1237, allocations: 11.94 kB / 485 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.649e-05/0.1238, allocations: 13.05 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1238, allocations: 4 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1238, allocations: 7.922 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1238, allocations: 0 / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.1241, allocations: 350.4 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1241, allocations: 0 / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.965e-05/0.1242, allocations: 4 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.1242, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.1242, allocations: 4 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.1242, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1242, allocations: 3.938 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.1245, allocations: 195.3 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.968e-05/0.1245, allocations: 81.02 kB / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1245, allocations: 32 / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.863e-05/0.1246, allocations: 7.984 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.1247, allocations: 12.05 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1247, allocations: 8 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.427e-05/0.1248, allocations: 105.3 kB / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1248, allocations: 0 / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.125, allocations: 19.91 kB / 485.8 MB, free: 15.11 MB / 366.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.0004928/0.1255, allocations: 0.724 MB / 486.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001629/0.1257, allocations: 55.97 kB / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1257, allocations: 0 / 486.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.395e-05/0.1258, allocations: 16 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.1261, allocations: 18.39 kB / 486.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.1277, allocations: 1.511 MB / 488.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.1279, allocations: 0.6924 MB / 488.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.2e-05/0.128, allocations: 16.42 kB / 488.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.078e-05/0.1281, allocations: 27.44 kB / 488.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1281, allocations: 0 / 488.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.1481, allocations: 2.167 MB / 491 MB, free: 9.801 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.208/7.356, allocations: 11.11 kB / 491.1 MB, free: 9.793 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches