Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001781/0.001781, allocations: 108.5 kB / 19.8 MB, free: 2.5 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.002224/0.002224, allocations: 214.8 kB / 22.99 MB, free: 5.582 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.46/1.46, allocations: 230.2 MB / 256.2 MB, free: 8.531 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2256/0.2256, allocations: 46.89 MB / 359.4 MB, free: 4.895 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002438/0.002438, allocations: 75.88 kB / 0.4941 GB, free: 9 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3333, allocations: 65.99 MB / 0.5586 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002876/0.3361, allocations: 1.639 MB / 0.5602 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008741/0.337, allocations: 0.523 MB / 0.5607 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.913e-05/0.3371, allocations: 3.938 kB / 0.5607 GB, free: 2.938 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000101/0.3372, allocations: 7.875 kB / 0.5607 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.145e-05/0.3372, allocations: 23.86 kB / 0.5607 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.3374, allocations: 31.91 kB / 0.5607 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.3375, allocations: 79.75 kB / 0.5608 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.3377, allocations: 22.05 kB / 0.5608 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.827e-05/0.3377, allocations: 27.92 kB / 0.5609 GB, free: 2.746 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.441e-05/0.3378, allocations: 27.8 kB / 0.5609 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.3378, allocations: 8 kB / 0.5609 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.433e-05/0.3378, allocations: 8 kB / 0.5609 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.3378, allocations: 19.91 kB / 0.5609 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.809e-05/0.3379, allocations: 35.8 kB / 0.561 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.338, allocations: 79.59 kB / 0.561 GB, free: 2.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.338, allocations: 4 kB / 0.561 GB, free: 2.566 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.338, allocations: 0 / 0.561 GB, free: 2.566 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.338, allocations: 0 / 0.561 GB, free: 2.566 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.0005627/0.3386, allocations: 391.1 kB / 0.5614 GB, free: 2.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3386, allocations: 15.97 kB / 0.5614 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.225e-05/0.3387, allocations: 34.75 kB / 0.5615 GB, free: 2.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.228e-05/0.3387, allocations: 12.89 kB / 0.5615 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.339, allocations: 200.1 kB / 0.5617 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.339, allocations: 8.375 kB / 0.5617 GB, free: 1.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.339, allocations: 8.375 kB / 0.5617 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001492/0.3391, allocations: 77.78 kB / 0.5618 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3392, allocations: 0 / 0.5618 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.3392, allocations: 4 kB / 0.5618 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.3392, allocations: 4 kB / 0.5618 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.69e-05/0.3393, allocations: 31.98 kB / 0.5618 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005669/0.3398, allocations: 364.5 kB / 0.5621 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.3399, allocations: 42.52 kB / 0.5622 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.808e-05/0.34, allocations: 20.92 kB / 0.5622 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-06/0.34, allocations: 0 / 0.5622 GB, free: 1.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001289/0.3401, allocations: 67.39 kB / 0.5623 GB, free: 1.137 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.3401, allocations: 4 kB / 0.5623 GB, free: 1.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002142/0.3403, allocations: 81.58 kB / 0.5623 GB, free: 1.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.159e-05/0.3404, allocations: 59.33 kB / 0.5624 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.3405, allocations: 144.3 kB / 0.5625 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.3405, allocations: 29.7 kB / 0.5626 GB, free: 0.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.864e-05/0.3406, allocations: 96.09 kB / 0.5627 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.3406, allocations: 19.97 kB / 0.5627 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.3407, allocations: 25.72 kB / 0.5627 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3408, allocations: 330.8 kB / 0.563 GB, free: 320 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.686e-05/0.3409, allocations: 15.98 kB / 0.563 GB, free: 304 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.288e-05/0.3409, allocations: 34.58 kB / 0.5631 GB, free: 260 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.234e-05/0.341, allocations: 62.8 kB / 0.5631 GB, free: 188 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.341, allocations: 0 / 0.5631 GB, free: 188 kB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001403/0.3411, allocations: 89.53 kB / 0.5632 GB, free: 92 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3411, allocations: 4 kB / 0.5632 GB, free: 88 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3412, allocations: 7.938 kB / 0.5632 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.3412, allocations: 0 / 0.5632 GB, free: 80 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.368e-05/0.3412, allocations: 8 kB / 0.5632 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.3412, allocations: 0 / 0.5632 GB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.963e-05/0.3413, allocations: 11.98 kB / 0.5632 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.3413, allocations: 4.188 kB / 0.5632 GB, free: 56 kB / 398.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 0.0001129/0.3414, allocations: 121.8 kB / 0.5634 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.3414, allocations: 11.89 kB / 0.5634 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.75e-05/0.3415, allocations: 20.64 kB / 0.5634 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3415, allocations: 0 / 0.5634 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3415, allocations: 0 / 0.5634 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.3415, allocations: 0 / 0.5634 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.3419, allocations: 354.4 kB / 0.5637 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3419, allocations: 4 kB / 0.5637 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.711e-05/0.3419, allocations: 4 kB / 0.5637 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3419, allocations: 0 / 0.5637 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.3419, allocations: 4 kB / 0.5637 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3419, allocations: 0 / 0.5637 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3419, allocations: 0 / 0.5637 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.3422, allocations: 195.4 kB / 0.5639 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.3422, allocations: 89 kB / 0.564 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.3422, allocations: 4.031 kB / 0.564 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.778e-05/0.3423, allocations: 7.984 kB / 0.564 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.3424, allocations: 12.05 kB / 0.564 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.3424, allocations: 4 kB / 0.564 GB, free: 15.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.428e-05/0.3424, allocations: 109.7 kB / 0.5641 GB, free: 15.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3424, allocations: 3.938 kB / 0.5641 GB, free: 15.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002361/0.3427, allocations: 12 kB / 0.5642 GB, free: 15.02 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,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.0005505/0.3432, allocations: 0.7202 MB / 0.5649 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.3434, allocations: 51.97 kB / 0.5649 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3434, allocations: 0 / 0.5649 GB, free: 14.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.225e-05/0.3434, allocations: 20.41 kB / 0.5649 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.3437, allocations: 15.98 kB / 0.5649 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.3455, allocations: 1.529 MB / 0.5664 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/0.3458, allocations: 0.6963 MB / 0.5671 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.935e-05/0.3459, allocations: 12.42 kB / 0.5671 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.3459, allocations: 23.44 kB / 0.5672 GB, free: 11.8 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3459, allocations: 0 / 0.5672 GB, free: 11.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.3732, allocations: 2.225 MB / 0.5693 GB, free: 9.641 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.403/8.777, allocations: 11.34 kB / 0.5693 GB, free: 9.637 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.539584583981195] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.849400656006765 8.874041809 8.531464904 Calling exit ...