Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008254/0.0008254, allocations: 101.5 kB / 18.95 MB, free: 1.18 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000878/0.000878, allocations: 214.5 kB / 22.25 MB, free: 3.57 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9567/0.9567, allocations: 230.6 MB / 256 MB, free: 9.602 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8222/0.8222, allocations: 203.8 MB / 0.5042 GB, free: 10.45 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 70.95 kB / 0.7182 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5232/0.5244, allocations: 102 MB / 0.8178 GB, free: 1.039 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002412/0.5268, allocations: 1.794 MB / 0.8195 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000813/0.5277, allocations: 0.549 MB / 0.8201 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000104/0.5278, allocations: 7.219 kB / 0.8201 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.5279, allocations: 25.62 kB / 0.8201 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.038e-05/0.528, allocations: 34.23 kB / 0.8201 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.5282, allocations: 64.61 kB / 0.8202 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.5284, allocations: 175.1 kB / 0.8204 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.5286, allocations: 35.88 kB / 0.8204 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.461e-05/0.5286, allocations: 50.45 kB / 0.8205 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 9.309e-05/0.5287, allocations: 60.94 kB / 0.8205 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.815e-05/0.5288, allocations: 11.06 kB / 0.8205 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.046e-05/0.5288, allocations: 11.75 kB / 0.8205 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.52e-05/0.5288, allocations: 23.5 kB / 0.8206 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.338e-05/0.5289, allocations: 60.14 kB / 0.8206 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002699/0.5292, allocations: 135.5 kB / 0.8207 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.5292, allocations: 0.6562 kB / 0.8207 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.246e-06/0.5292, allocations: 0 / 0.8207 GB, free: 15.08 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.5292, allocations: 0 / 0.8207 GB, free: 15.08 MB / 0.6198 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.0007591/0.53, allocations: 425.3 kB / 0.8212 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 6.474e-05/0.53, allocations: 10.84 kB / 0.8212 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.67e-05/0.5301, allocations: 51.89 kB / 0.8212 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.5301, allocations: 22.38 kB / 0.8212 GB, free: 14.66 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003382/0.5305, allocations: 171.5 kB / 0.8214 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.5305, allocations: 11.38 kB / 0.8214 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.5305, allocations: 16.67 kB / 0.8214 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003113/0.5308, allocations: 149.9 kB / 0.8216 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.5308, allocations: 0 / 0.8216 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.5309, allocations: 3.531 kB / 0.8216 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.5309, allocations: 6.656 kB / 0.8216 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.531, allocations: 75.48 kB / 0.8216 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008702/0.5319, allocations: 0.6812 MB / 0.8223 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.5321, allocations: 47.5 kB / 0.8224 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.822e-05/0.5321, allocations: 32.92 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.5322, allocations: 1.125 kB / 0.8224 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.5324, allocations: 128.8 kB / 0.8225 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.103e-06/0.5324, allocations: 1.594 kB / 0.8225 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0003796/0.5328, allocations: 160.5 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.5329, allocations: 136.4 kB / 0.8228 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.5331, allocations: 213.4 kB / 0.823 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.5331, allocations: 34.77 kB / 0.823 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.5332, allocations: 134.4 kB / 0.8232 GB, free: 13.05 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.5332, allocations: 35.78 kB / 0.8232 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.5332, allocations: 43.56 kB / 0.8232 GB, free: 12.99 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.099e-05/0.5333, allocations: 329.7 kB / 0.8236 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.403e-05/0.5334, allocations: 35.8 kB / 0.8236 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.5335, allocations: 143.8 kB / 0.8237 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.5338, allocations: 209.8 kB / 0.8239 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.5338, allocations: 3.938 kB / 0.8239 GB, free: 12.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002776/0.534, allocations: 208.5 kB / 0.8241 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.5341, allocations: 8 kB / 0.8241 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.5341, allocations: 2.594 kB / 0.8241 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.5341, allocations: 5.938 kB / 0.8241 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.552e-05/0.5342, allocations: 33.78 kB / 0.8242 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.5342, allocations: 6.312 kB / 0.8242 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.528e-05/0.5343, allocations: 32.41 kB / 0.8242 GB, free: 12.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.5343, allocations: 9.062 kB / 0.8242 GB, free: 12.2 MB / 0.6198 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 0.000107/0.5344, allocations: 142.3 kB / 0.8244 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.21e-05/0.5344, allocations: 22.06 kB / 0.8244 GB, free: 12.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.126e-05/0.5344, allocations: 21.66 kB / 0.8244 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.5344, allocations: 1.188 kB / 0.8244 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.5345, allocations: 6.562 kB / 0.8244 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5345, allocations: 1.359 kB / 0.8244 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005612/0.535, allocations: 486.9 kB / 0.8249 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.535, allocations: 2.078 kB / 0.8249 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.927e-05/0.5351, allocations: 15.73 kB / 0.8249 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.5351, allocations: 1.375 kB / 0.8249 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.5351, allocations: 7.641 kB / 0.8249 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.5351, allocations: 5.375 kB / 0.8249 GB, free: 11.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5351, allocations: 1.312 kB / 0.8249 GB, free: 11.63 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003529/0.5355, allocations: 362.3 kB / 0.8252 GB, free: 11.36 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.979e-05/0.5355, allocations: 18.31 kB / 0.8253 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.5355, allocations: 6.797 kB / 0.8253 GB, free: 11.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.056e-05/0.5356, allocations: 16.27 kB / 0.8253 GB, free: 11.34 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.5357, allocations: 14.98 kB / 0.8253 GB, free: 11.34 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.687e-06/0.5357, allocations: 4.312 kB / 0.8253 GB, free: 11.34 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001023/0.5358, allocations: 142 kB / 0.8254 GB, free: 11.25 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.1e-08/0.5358, allocations: 1.438 kB / 0.8254 GB, free: 11.25 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002195/0.536, allocations: 33.98 kB / 0.8255 GB, free: 11.23 MB / 0.6198 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.0005198/0.5365, allocations: 0.8911 MB / 0.8263 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.5367, allocations: 116.4 kB / 0.8265 GB, free: 10.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5367, allocations: 4.062 kB / 0.8265 GB, free: 10.39 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.864e-05/0.5368, allocations: 47.97 kB / 0.8265 GB, free: 10.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003666/0.5372, allocations: 69.14 kB / 0.8266 GB, free: 10.36 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.5393, allocations: 2.278 MB / 0.8288 GB, free: 8.488 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.5394, allocations: 113.7 kB / 0.8289 GB, free: 8.414 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.372e-05/0.5395, allocations: 16.92 kB / 0.8289 GB, free: 8.414 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.838e-05/0.5395, allocations: 48.52 kB / 0.829 GB, free: 8.379 MB / 0.6198 GB Notification: Performance of SimCode: time 3.5e-07/0.5395, allocations: 1.25 kB / 0.829 GB, free: 8.379 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02069/0.5602, allocations: 4.783 MB / 0.8336 GB, free: 7.254 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.54/7.1, allocations: 9.297 kB / 0.8336 GB, free: 7.25 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.236353502143174] Failed to read output from testmodel.py, exit status != 0: 7.180476368870586 7.191704742 6.660506074 Calling exit ...