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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00135/0.00135, allocations: 107.4 kB / 20.48 MB, free: 1.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001508/0.001508, allocations: 214.4 kB / 23.77 MB, free: 4.438 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 230.5 MB / 257.5 MB, free: 7.707 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2358/0.2358, allocations: 46.96 MB / 360.9 MB, free: 3.867 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002392, allocations: 79.88 kB / 0.4962 GB, free: 7.496 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3021, allocations: 66.08 MB / 0.5608 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002852/0.305, allocations: 1.605 MB / 0.5623 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.3061, allocations: 495.8 kB / 0.5628 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.3062, allocations: 3.938 kB / 0.5628 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.3063, allocations: 11.88 kB / 0.5628 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.52e-05/0.3064, allocations: 11.86 kB / 0.5628 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.3066, allocations: 39.89 kB / 0.5629 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000159/0.3068, allocations: 71.83 kB / 0.5629 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.3069, allocations: 22.05 kB / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.519e-05/0.3069, allocations: 35.81 kB / 0.563 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.326e-05/0.307, allocations: 31.83 kB / 0.563 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.307, allocations: 4 kB / 0.563 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.8e-05/0.3071, allocations: 8 kB / 0.563 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.763e-05/0.3071, allocations: 19.92 kB / 0.5631 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.842e-05/0.3071, allocations: 31.8 kB / 0.5631 GB, free: 1.594 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.3073, allocations: 67.66 kB / 0.5632 GB, free: 1.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3073, allocations: 8 kB / 0.5632 GB, free: 1.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3073, allocations: 0 / 0.5632 GB, free: 1.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.3073, allocations: 0 / 0.5632 GB, free: 1.52 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.0005629/0.3078, allocations: 330.8 kB / 0.5635 GB, free: 1.164 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3079, allocations: 8.031 kB / 0.5635 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.435e-05/0.3079, allocations: 38.75 kB / 0.5635 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.308, allocations: 8.891 kB / 0.5635 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/0.3082, allocations: 146.3 kB / 0.5637 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.3082, allocations: 8.359 kB / 0.5637 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.3082, allocations: 8.375 kB / 0.5637 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.3084, allocations: 81.73 kB / 0.5638 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.3084, allocations: 0 / 0.5638 GB, free: 0.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3084, allocations: 7.938 kB / 0.5638 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.3084, allocations: 3.984 kB / 0.5638 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.414e-05/0.3085, allocations: 35.98 kB / 0.5638 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005332/0.309, allocations: 299.7 kB / 0.5641 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.3091, allocations: 50.56 kB / 0.5641 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.348e-05/0.3092, allocations: 16.92 kB / 0.5642 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.3092, allocations: 0 / 0.5642 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/0.3093, allocations: 71.33 kB / 0.5642 GB, free: 296 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 3.156e-06/0.3093, allocations: 4 kB / 0.5642 GB, free: 292 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002177/0.3095, allocations: 89.56 kB / 0.5643 GB, free: 196 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.3096, allocations: 51.41 kB / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.3097, allocations: 136.2 kB / 0.5645 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.3098, allocations: 33.64 kB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.031e-05/0.3098, allocations: 96.09 kB / 0.5646 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.3098, allocations: 23.97 kB / 0.5646 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.265e-05/0.3099, allocations: 21.72 kB / 0.5647 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.31, allocations: 330.8 kB / 0.565 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.281e-05/0.3101, allocations: 16 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.299e-05/0.3101, allocations: 38.5 kB / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.304e-05/0.3102, allocations: 54.56 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3102, allocations: 0 / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001524/0.3104, allocations: 93.52 kB / 0.5652 GB, free: 15.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3104, allocations: 8 kB / 0.5652 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.3104, allocations: 7.875 kB / 0.5652 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.3104, allocations: 0 / 0.5652 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.356e-05/0.3105, allocations: 8 kB / 0.5652 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.3105, allocations: 0 / 0.5652 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.752e-05/0.3105, allocations: 16.05 kB / 0.5652 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.497e-06/0.3105, allocations: 8 kB / 0.5652 GB, free: 15.2 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.465e-05/0.3106, allocations: 113.8 kB / 0.5653 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.3107, allocations: 7.953 kB / 0.5653 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.769e-05/0.3107, allocations: 16.72 kB / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3107, allocations: 0 / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3107, allocations: 0 / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3107, allocations: 3.984 kB / 0.5654 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003626/0.3111, allocations: 317.4 kB / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3111, allocations: 192 / 0.5657 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.646e-05/0.3111, allocations: 8 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.3111, allocations: 3.938 kB / 0.5657 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.3111, allocations: 4 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3111, allocations: 4 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3111, allocations: 0 / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.3114, allocations: 195.9 kB / 0.5659 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.038e-05/0.3114, allocations: 11.94 kB / 0.5659 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.3114, allocations: 7.984 kB / 0.5659 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.063e-05/0.3115, allocations: 0 / 0.5659 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.3115, allocations: 11.98 kB / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.3115, allocations: 4.062 kB / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.759e-05/0.3116, allocations: 113 kB / 0.566 GB, free: 14.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3116, allocations: 3.938 kB / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.3119, allocations: 16 kB / 0.566 GB, free: 14.3 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.0005402/0.3124, allocations: 0.7241 MB / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.3125, allocations: 43.92 kB / 0.5668 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3125, allocations: 0 / 0.5668 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.281e-05/0.3126, allocations: 19.98 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.3129, allocations: 18 kB / 0.5668 GB, free: 13.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.3146, allocations: 1.522 MB / 0.5683 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.766e-05/0.3147, allocations: 79.19 kB / 0.5684 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.854e-05/0.3147, allocations: 8.484 kB / 0.5684 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.3148, allocations: 32.48 kB / 0.5684 GB, free: 11.72 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3148, allocations: 0 / 0.5684 GB, free: 11.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03062/0.3454, allocations: 2.894 MB / 0.5712 GB, free: 8.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.58, allocations: 13.55 kB / 0.5713 GB, free: 8.918 MB / 414.1 MB " [Timeout remaining time 648] (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.000997805 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 14.569580397976097]