Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 105.8 kB / 16.4 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 191.7 kB / 19.36 MB, free: 3.727 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 245.1 MB, free: 4.34 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7873/0.7873, allocations: 132.2 MB / 429.4 MB, free: 0.8359 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.89 kB / 0.5894 GB, free: 5.738 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3851, allocations: 80.2 MB / 0.6677 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002425/0.3875, allocations: 1.809 MB / 0.6695 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007716/0.3883, allocations: 0.5371 MB / 0.67 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.166e-05/0.3884, allocations: 11.88 kB / 0.67 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.3886, allocations: 29.06 kB / 0.67 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.997e-05/0.3886, allocations: 17.91 kB / 0.6701 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000178/0.3888, allocations: 76.91 kB / 0.6701 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.389, allocations: 166.6 kB / 0.6703 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.3892, allocations: 52.28 kB / 0.6703 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.669e-05/0.3892, allocations: 62.91 kB / 0.6704 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.437e-05/0.3893, allocations: 57.17 kB / 0.6704 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.134e-05/0.3893, allocations: 14.12 kB / 0.6705 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.147e-05/0.3894, allocations: 10.66 kB / 0.6705 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.91e-05/0.3894, allocations: 32.59 kB / 0.6705 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.418e-05/0.3894, allocations: 62.42 kB / 0.6706 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.3896, allocations: 139.2 kB / 0.6707 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3896, allocations: 0 / 0.6707 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3896, allocations: 0 / 0.6707 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.928e-06/0.3896, allocations: 0 / 0.6707 GB, free: 8.48 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.000592/0.3902, allocations: 477.2 kB / 0.6712 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.3903, allocations: 9.781 kB / 0.6712 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.006e-05/0.3903, allocations: 45.58 kB / 0.6712 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.894e-05/0.3904, allocations: 26.77 kB / 0.6712 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.3906, allocations: 231.2 kB / 0.6715 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.3906, allocations: 9.594 kB / 0.6715 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.3906, allocations: 16.14 kB / 0.6715 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002432/0.3909, allocations: 147.9 kB / 0.6716 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.3909, allocations: 3.938 kB / 0.6716 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.3909, allocations: 5.156 kB / 0.6716 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3909, allocations: 2.969 kB / 0.6716 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.3912, allocations: 74.38 kB / 0.6717 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.3919, allocations: 0.7346 MB / 0.6724 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.392, allocations: 53.95 kB / 0.6725 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.853e-05/0.3921, allocations: 31.89 kB / 0.6725 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.3921, allocations: 1 kB / 0.6725 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001965/0.3923, allocations: 136.8 kB / 0.6726 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.392e-06/0.3924, allocations: 0 / 0.6726 GB, free: 6.625 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004361/0.3928, allocations: 161 kB / 0.6728 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.3928, allocations: 134.1 kB / 0.6729 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.393, allocations: 204.4 kB / 0.6731 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.393, allocations: 27.83 kB / 0.6731 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.3931, allocations: 139.6 kB / 0.6733 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.3931, allocations: 37.19 kB / 0.6733 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.3932, allocations: 36.66 kB / 0.6733 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.397e-05/0.3932, allocations: 331 kB / 0.6737 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.3933, allocations: 41.88 kB / 0.6737 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.3935, allocations: 149.9 kB / 0.6738 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.3937, allocations: 205.2 kB / 0.674 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3937, allocations: 1.125 kB / 0.674 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003523/0.3941, allocations: 211.1 kB / 0.6742 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3941, allocations: 7.719 kB / 0.6742 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3941, allocations: 11.98 kB / 0.6743 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.3942, allocations: 6.188 kB / 0.6743 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.3943, allocations: 34.69 kB / 0.6743 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.3943, allocations: 9.469 kB / 0.6743 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.3944, allocations: 28.03 kB / 0.6743 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/0.3945, allocations: 9.344 kB / 0.6743 GB, free: 5.117 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.091e-05/0.3946, allocations: 131.1 kB / 0.6745 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.3946, allocations: 28.39 kB / 0.6745 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.774e-05/0.3946, allocations: 18.72 kB / 0.6745 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.3946, allocations: 6.844 kB / 0.6745 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.3947, allocations: 1.312 kB / 0.6745 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.3947, allocations: 5.391 kB / 0.6745 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006144/0.3953, allocations: 0.5107 MB / 0.675 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3953, allocations: 4.062 kB / 0.675 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.3954, allocations: 15.95 kB / 0.675 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3954, allocations: 1.344 kB / 0.675 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.3954, allocations: 6.891 kB / 0.675 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.3955, allocations: 5.375 kB / 0.675 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3955, allocations: 5.281 kB / 0.6751 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/0.3959, allocations: 356.8 kB / 0.6754 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-05/0.3959, allocations: 94.17 kB / 0.6755 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.396, allocations: 2.469 kB / 0.6755 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.3961, allocations: 23.56 kB / 0.6755 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.3962, allocations: 17.12 kB / 0.6755 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.3962, allocations: 8.25 kB / 0.6755 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.217e-05/0.3963, allocations: 142 kB / 0.6757 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3963, allocations: 0 / 0.6757 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003223/0.3966, allocations: 27.12 kB / 0.6757 GB, free: 3.906 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.000603/0.3972, allocations: 0.894 MB / 0.6766 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003173/0.3975, allocations: 121.6 kB / 0.6767 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3976, allocations: 0 / 0.6767 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3977, allocations: 50.41 kB / 0.6767 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.3983, allocations: 65.84 kB / 0.6768 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.4002, allocations: 2.272 MB / 0.679 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001289/0.4004, allocations: 0.7242 MB / 0.6797 GB, free: 272 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.44e-05/0.4004, allocations: 23.75 kB / 0.6797 GB, free: 256 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.958e-05/0.4005, allocations: 54.27 kB / 0.6798 GB, free: 212 kB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.4005, allocations: 0 / 0.6798 GB, free: 212 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.4265, allocations: 4.012 MB / 0.6837 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.145/8.572, allocations: 10.17 kB / 0.6837 GB, free: 14.2 MB / 0.5137 GB " [Timeout remaining time 651] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.03508178004995] Failed to read output from testmodel.py, exit status != 0: 8.639280347037129 8.654410662 8.261882437 Calling exit ...