Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002031/0.002031, allocations: 208.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2158/0.2158, allocations: 46.95 MB / 360.9 MB, free: 4.043 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 72.05 kB / 0.4961 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3112, allocations: 66.05 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003004/0.3142, allocations: 1.604 MB / 0.5621 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.3152, allocations: 495.8 kB / 0.5626 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.769e-05/0.3153, allocations: 4 kB / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.3154, allocations: 7.875 kB / 0.5626 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.529e-05/0.3155, allocations: 11.86 kB / 0.5626 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002025/0.3157, allocations: 43.89 kB / 0.5627 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001503/0.3158, allocations: 71.78 kB / 0.5628 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.316, allocations: 26.03 kB / 0.5628 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.517e-05/0.316, allocations: 35.8 kB / 0.5628 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.057e-05/0.3161, allocations: 31.84 kB / 0.5628 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.3161, allocations: 8 kB / 0.5629 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.569e-05/0.3161, allocations: 8 kB / 0.5629 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.3162, allocations: 19.92 kB / 0.5629 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.912e-05/0.3162, allocations: 19.88 kB / 0.5629 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.3163, allocations: 79.64 kB / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3164, allocations: 0 / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3164, allocations: 0 / 0.563 GB, free: 1.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3164, allocations: 0 / 0.563 GB, free: 1.75 MB / 398.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.000576/0.3169, allocations: 330.8 kB / 0.5633 GB, free: 1.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.317, allocations: 16.02 kB / 0.5633 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.056e-05/0.317, allocations: 42.69 kB / 0.5633 GB, free: 1.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.193e-05/0.317, allocations: 16.89 kB / 0.5634 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.3173, allocations: 134.4 kB / 0.5635 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3173, allocations: 8.375 kB / 0.5635 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.818e-05/0.3173, allocations: 12.38 kB / 0.5635 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.3175, allocations: 73.73 kB / 0.5636 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3175, allocations: 0 / 0.5636 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.3175, allocations: 8 kB / 0.5636 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3175, allocations: 0 / 0.5636 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.705e-05/0.3176, allocations: 31.98 kB / 0.5636 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/0.3181, allocations: 315.6 kB / 0.5639 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.3183, allocations: 42.56 kB / 0.564 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.315e-05/0.3183, allocations: 16.89 kB / 0.564 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.3183, allocations: 3.938 kB / 0.564 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.3184, allocations: 71.38 kB / 0.564 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.3184, allocations: 0 / 0.564 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002245/0.3187, allocations: 89.56 kB / 0.5641 GB, free: 428 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.3187, allocations: 55.41 kB / 0.5642 GB, free: 360 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.3188, allocations: 136.8 kB / 0.5643 GB, free: 216 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.3189, allocations: 33.7 kB / 0.5643 GB, free: 176 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.864e-05/0.3189, allocations: 100.1 kB / 0.5644 GB, free: 72 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.319, allocations: 19.97 kB / 0.5645 GB, free: 52 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-05/0.319, allocations: 29.7 kB / 0.5645 GB, free: 16 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.3192, allocations: 322.9 kB / 0.5648 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-05/0.3192, allocations: 16 kB / 0.5648 GB, free: 15.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.481e-05/0.3193, allocations: 42.5 kB / 0.5649 GB, free: 15.62 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.505e-05/0.3193, allocations: 46.88 kB / 0.5649 GB, free: 15.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3193, allocations: 4 kB / 0.5649 GB, free: 15.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001364/0.3195, allocations: 93.53 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3195, allocations: 4 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3195, allocations: 3.938 kB / 0.565 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3195, allocations: 11.88 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.464e-05/0.3196, allocations: 7.984 kB / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.3196, allocations: 4 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.758e-05/0.3197, allocations: 4 kB / 0.565 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.3197, allocations: 4 kB / 0.565 GB, free: 15.43 MB / 414.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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.703e-05/0.3198, allocations: 117.8 kB / 0.5651 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.927e-05/0.3198, allocations: 16.02 kB / 0.5652 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.3198, allocations: 12.66 kB / 0.5652 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3198, allocations: 4 kB / 0.5652 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3198, allocations: 0 / 0.5652 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3198, allocations: 3.984 kB / 0.5652 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.3202, allocations: 321.3 kB / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3202, allocations: 0 / 0.5655 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.686e-05/0.3202, allocations: 4 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3202, allocations: 0 / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.3202, allocations: 4 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3202, allocations: 0 / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.3202, allocations: 4 kB / 0.5655 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.3205, allocations: 195.5 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.064e-05/0.3205, allocations: 11.98 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.3205, allocations: 7.938 kB / 0.5657 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.577e-05/0.3206, allocations: 7.984 kB / 0.5657 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.3206, allocations: 11.97 kB / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.3206, allocations: 4 kB / 0.5657 GB, free: 14.64 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.276e-05/0.3207, allocations: 103.3 kB / 0.5658 GB, free: 14.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3207, allocations: 0 / 0.5658 GB, free: 14.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.3209, allocations: 12 kB / 0.5658 GB, free: 14.52 MB / 414.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,fallingEdge.not_u,booleanPulse.pulseStart) * 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.0004954/0.3214, allocations: 0.728 MB / 0.5665 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.3216, allocations: 43.92 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3216, allocations: 0 / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.828e-05/0.3216, allocations: 16.47 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.3219, allocations: 18.33 kB / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.3235, allocations: 1.53 MB / 0.5681 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.524e-05/0.3236, allocations: 83.38 kB / 0.5682 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.036e-05/0.3237, allocations: 8.422 kB / 0.5682 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.683e-05/0.3237, allocations: 31.44 kB / 0.5682 GB, free: 11.93 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3237, allocations: 0 / 0.5682 GB, free: 11.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02909/0.3528, allocations: 2.831 MB / 0.571 GB, free: 9.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.08, allocations: 0 / 0.571 GB, free: 9.238 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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.000997805 ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.962882566993358]