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.001339/0.001339, allocations: 114 kB / 20.43 MB, free: 1.457 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.001437/0.001437, allocations: 214.9 kB / 23.74 MB, free: 4.672 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.447/1.447, allocations: 230.5 MB / 257.4 MB, free: 7.969 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.2285/0.2285, allocations: 46.93 MB / 360.8 MB, free: 4.145 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.002325/0.002325, allocations: 83.88 kB / 0.4962 GB, free: 7.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3311, allocations: 66.08 MB / 0.5607 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002922/0.334, allocations: 1.64 MB / 0.5623 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000922/0.335, allocations: 0.523 MB / 0.5628 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.162e-05/0.335, allocations: 4 kB / 0.5628 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.3352, allocations: 11.88 kB / 0.5628 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.283e-05/0.3352, allocations: 11.86 kB / 0.5629 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.3354, allocations: 39.89 kB / 0.5629 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.3356, allocations: 75.78 kB / 0.563 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.3357, allocations: 22.05 kB / 0.563 GB, free: 1.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.108e-05/0.3357, allocations: 27.91 kB / 0.563 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.365e-05/0.3358, allocations: 35.78 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.3358, allocations: 11.94 kB / 0.5631 GB, free: 1.871 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.693e-05/0.3359, allocations: 4 kB / 0.5631 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.685e-05/0.3359, allocations: 19.92 kB / 0.5631 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.17e-05/0.3359, allocations: 43.73 kB / 0.5631 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.3361, allocations: 71.66 kB / 0.5632 GB, free: 1.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3361, allocations: 4 kB / 0.5632 GB, free: 1.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3361, allocations: 0 / 0.5632 GB, free: 1.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3361, allocations: 0 / 0.5632 GB, free: 1.73 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.0006029/0.3367, allocations: 326.8 kB / 0.5635 GB, free: 1.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3367, allocations: 8.031 kB / 0.5635 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.3368, allocations: 38.75 kB / 0.5636 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.3368, allocations: 12.89 kB / 0.5636 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.3371, allocations: 150.3 kB / 0.5637 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.3371, allocations: 8.375 kB / 0.5637 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.3371, allocations: 4.375 kB / 0.5637 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001584/0.3373, allocations: 73.8 kB / 0.5638 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.3373, allocations: 4 kB / 0.5638 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3373, allocations: 0 / 0.5638 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.3373, allocations: 0 / 0.5638 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.523e-05/0.3374, allocations: 43.91 kB / 0.5638 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006024/0.338, allocations: 315.7 kB / 0.5641 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000117/0.3381, allocations: 50.55 kB / 0.5642 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.477e-05/0.3382, allocations: 16.89 kB / 0.5642 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.3382, allocations: 0 / 0.5642 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001466/0.3383, allocations: 75.38 kB / 0.5643 GB, free: 500 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.3383, allocations: 0 / 0.5643 GB, free: 500 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002355/0.3386, allocations: 85.52 kB / 0.5644 GB, free: 408 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.3386, allocations: 59.39 kB / 0.5644 GB, free: 336 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3388, allocations: 135.9 kB / 0.5645 GB, free: 192 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.132e-05/0.3388, allocations: 29.7 kB / 0.5646 GB, free: 156 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.3388, allocations: 100.1 kB / 0.5647 GB, free: 52 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.3389, allocations: 27.95 kB / 0.5647 GB, free: 24 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/0.3389, allocations: 25.72 kB / 0.5647 GB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3391, allocations: 318.8 kB / 0.565 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.413e-05/0.3391, allocations: 19.98 kB / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.178e-05/0.3392, allocations: 34.52 kB / 0.5651 GB, free: 15.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.315e-05/0.3393, allocations: 58.69 kB / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3393, allocations: 0 / 0.5651 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000142/0.3394, allocations: 93.78 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3394, allocations: 8 kB / 0.5652 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3394, allocations: 3.938 kB / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3394, allocations: 0 / 0.5652 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.69e-05/0.3395, allocations: 11.94 kB / 0.5652 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.3395, allocations: 4.062 kB / 0.5652 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.18e-05/0.3396, allocations: 7.984 kB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.3396, allocations: 8 kB / 0.5653 GB, free: 15.4 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 0.0001041/0.3397, allocations: 119.2 kB / 0.5654 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.3397, allocations: 7.953 kB / 0.5654 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.3398, allocations: 20.64 kB / 0.5654 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3398, allocations: 0 / 0.5654 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3398, allocations: 0 / 0.5654 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.3398, allocations: 4 kB / 0.5654 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.3401, allocations: 329.4 kB / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3401, allocations: 0 / 0.5657 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.602e-05/0.3402, allocations: 8 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.3402, allocations: 0 / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.3402, allocations: 0 / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.3402, allocations: 4 kB / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3402, allocations: 0 / 0.5657 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002242/0.3404, allocations: 191.4 kB / 0.5659 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.928e-05/0.3404, allocations: 15.97 kB / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.3405, allocations: 0 / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.904e-05/0.3405, allocations: 16.05 kB / 0.5659 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/0.3406, allocations: 7.984 kB / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.3406, allocations: 0 / 0.566 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.148e-05/0.3407, allocations: 105.5 kB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3407, allocations: 0 / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.3409, allocations: 16 kB / 0.5661 GB, free: 14.5 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.0005261/0.3414, allocations: 0.728 MB / 0.5668 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.3416, allocations: 43.92 kB / 0.5668 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3416, allocations: 4 kB / 0.5668 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.054e-05/0.3416, allocations: 19.94 kB / 0.5668 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.3419, allocations: 18.73 kB / 0.5669 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.3437, allocations: 1.526 MB / 0.5684 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003271/0.344, allocations: 0.6924 MB / 0.569 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.552e-05/0.3441, allocations: 8.422 kB / 0.569 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.3441, allocations: 23.44 kB / 0.5691 GB, free: 11.29 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3441, allocations: 0 / 0.5691 GB, free: 11.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.3725, allocations: 2.37 MB / 0.5714 GB, free: 9.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.27, allocations: 4.062 kB / 0.5714 GB, free: 9.012 MB / 414.1 MB " [Timeout remaining time 649] (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.311688817993854]