Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.001731/0.001731, allocations: 109.4 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.001942/0.001942, allocations: 220.6 kB / 23 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.441/1.441, allocations: 230.2 MB / 256.3 MB, free: 8.523 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.2266/0.2266, allocations: 46.89 MB / 359.4 MB, free: 4.941 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",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.002279/0.002279, allocations: 91.84 kB / 0.4941 GB, free: 9.039 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3288, allocations: 65.98 MB / 0.5586 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003151/0.3319, allocations: 1.659 MB / 0.5602 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.3331, allocations: 0.595 MB / 0.5608 GB, free: 2.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.331e-05/0.3332, allocations: 4 kB / 0.5608 GB, free: 2.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.3334, allocations: 15.86 kB / 0.5608 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.619e-05/0.3334, allocations: 11.81 kB / 0.5608 GB, free: 2.879 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.3338, allocations: 87.81 kB / 0.5609 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001984/0.334, allocations: 115.7 kB / 0.561 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.3341, allocations: 27.97 kB / 0.561 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.296e-05/0.3342, allocations: 47.83 kB / 0.5611 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.352e-05/0.3343, allocations: 35.84 kB / 0.5611 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.3343, allocations: 8 kB / 0.5611 GB, free: 2.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.583e-05/0.3344, allocations: 8 kB / 0.5611 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.114e-05/0.3344, allocations: 19.92 kB / 0.5611 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.046e-05/0.3344, allocations: 43.72 kB / 0.5612 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.3346, allocations: 99.5 kB / 0.5613 GB, free: 2.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3346, allocations: 0 / 0.5613 GB, free: 2.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3346, allocations: 0 / 0.5613 GB, free: 2.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.3346, allocations: 0 / 0.5613 GB, free: 2.395 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006947/0.3353, allocations: 415 kB / 0.5617 GB, free: 1.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3353, allocations: 11.97 kB / 0.5617 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.801e-05/0.3354, allocations: 38.75 kB / 0.5617 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.683e-05/0.3354, allocations: 12.89 kB / 0.5617 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.3357, allocations: 211.2 kB / 0.5619 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.3357, allocations: 8.375 kB / 0.5619 GB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/0.3358, allocations: 8.375 kB / 0.5619 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.3361, allocations: 97.77 kB / 0.562 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.046e-06/0.3361, allocations: 4 kB / 0.562 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.3361, allocations: 11.98 kB / 0.5621 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3361, allocations: 0 / 0.5621 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001637/0.3362, allocations: 47.97 kB / 0.5621 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000723/0.337, allocations: 392.5 kB / 0.5625 GB, free: 1.016 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/0.3373, allocations: 98.55 kB / 0.5626 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.3374, allocations: 40.81 kB / 0.5626 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.3375, allocations: 0 / 0.5626 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.3377, allocations: 99.3 kB / 0.5627 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3377, allocations: 4 kB / 0.5627 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004803/0.3382, allocations: 145.5 kB / 0.5628 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.3383, allocations: 51.41 kB / 0.5629 GB, free: 0.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.3384, allocations: 152.8 kB / 0.563 GB, free: 396 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3385, allocations: 37.7 kB / 0.5631 GB, free: 352 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.3385, allocations: 100.1 kB / 0.5632 GB, free: 248 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.3386, allocations: 15.86 kB / 0.5632 GB, free: 232 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.627e-05/0.3386, allocations: 25.72 kB / 0.5632 GB, free: 200 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.3388, allocations: 322.8 kB / 0.5635 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.3389, allocations: 35.97 kB / 0.5636 GB, free: 15.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.3391, allocations: 53.69 kB / 0.5636 GB, free: 15.78 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.3393, allocations: 73.81 kB / 0.5637 GB, free: 15.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3393, allocations: 7.938 kB / 0.5637 GB, free: 15.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00029/0.3396, allocations: 117.5 kB / 0.5638 GB, free: 15.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.3396, allocations: 7.938 kB / 0.5638 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.3396, allocations: 4 kB / 0.5638 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3396, allocations: 0 / 0.5638 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3397, allocations: 24.02 kB / 0.5638 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3397, allocations: 0 / 0.5638 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3398, allocations: 16.06 kB / 0.5638 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-06/0.3399, allocations: 4 kB / 0.5638 GB, free: 15.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.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.0001035/0.34, allocations: 117.8 kB / 0.564 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.373e-05/0.34, allocations: 19.84 kB / 0.564 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.548e-05/0.34, allocations: 12.72 kB / 0.564 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.34, allocations: 7.969 kB / 0.564 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.34, allocations: 8 kB / 0.564 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.34, allocations: 4 kB / 0.564 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005749/0.3406, allocations: 382.8 kB / 0.5644 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3406, allocations: 4 kB / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.914e-05/0.3407, allocations: 19.92 kB / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3407, allocations: 0 / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.3407, allocations: 0 / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.3407, allocations: 0 / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3407, allocations: 4.016 kB / 0.5644 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004888/0.3412, allocations: 251.4 kB / 0.5646 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.018e-05/0.3413, allocations: 97.03 kB / 0.5647 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.3413, allocations: 0 / 0.5647 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.3414, allocations: 15.98 kB / 0.5647 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.3415, allocations: 15.97 kB / 0.5648 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.3415, allocations: 4 kB / 0.5648 GB, free: 14.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.918e-05/0.3416, allocations: 114.7 kB / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3416, allocations: 0 / 0.5649 GB, free: 14.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.3418, allocations: 19.94 kB / 0.5649 GB, free: 14.34 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,change.u) * Number of discrete states: 1 (change.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.0007901/0.3426, allocations: 0.7787 MB / 0.5657 GB, free: 13.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.3429, allocations: 87.92 kB / 0.5657 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3429, allocations: 4.125 kB / 0.5657 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.3431, allocations: 35.97 kB / 0.5658 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.3434, allocations: 19.92 kB / 0.5658 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.346, allocations: 1.697 MB / 0.5675 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.3463, allocations: 0.701 MB / 0.5681 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.394e-05/0.3464, allocations: 8.562 kB / 0.5681 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.792e-05/0.3465, allocations: 31.42 kB / 0.5682 GB, free: 10.84 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3465, allocations: 4 kB / 0.5682 GB, free: 10.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.3726, allocations: 2.618 MB / 0.5707 GB, free: 8.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.366/8.738, allocations: 7.719 kB / 0.5707 GB, free: 8.273 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000995025 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.453784195997287] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.815131754003232 8.836063418 8.49754871 Calling exit ...