Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter.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.0007777/0.0007777, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.001316/0.001316, allocations: 209.7 kB / 22.24 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.9512/0.9512, 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 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7864/0.7864, allocations: 203.5 MB / 0.5038 GB, free: 10.77 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_OnCounter",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.001247/0.001247, allocations: 64.59 kB / 0.7178 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5544/0.5557, allocations: 102 MB / 0.8174 GB, free: 1.23 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001438/0.5571, allocations: 0.6543 MB / 0.818 GB, free: 0.8281 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.5583, allocations: 1.225 MB / 0.8192 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.443e-05/0.5583, allocations: 0 / 0.8192 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.091e-05/0.5583, allocations: 3.938 kB / 0.8192 GB, free: 15.94 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.199e-05/0.5584, allocations: 12.52 kB / 0.8192 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.5589, allocations: 223.2 kB / 0.8195 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.5591, allocations: 180.3 kB / 0.8196 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.759e-05/0.5592, allocations: 5.969 kB / 0.8196 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.541e-05/0.5593, allocations: 76.06 kB / 0.8197 GB, free: 15.71 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.5595, allocations: 54.77 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.5595, allocations: 16.81 kB / 0.8198 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.954e-05/0.5596, allocations: 30.08 kB / 0.8198 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.925e-05/0.5596, allocations: 16 kB / 0.8198 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.787e-05/0.5597, allocations: 46.98 kB / 0.8199 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002149/0.5599, allocations: 168.7 kB / 0.82 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.5599, allocations: 4.656 kB / 0.82 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.405e-06/0.5599, allocations: 3.938 kB / 0.82 GB, free: 15.6 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.5599, allocations: 0.5312 kB / 0.82 GB, free: 15.6 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0007782/0.5607, allocations: 362.5 kB / 0.8204 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.5607, allocations: 8.234 kB / 0.8204 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.685e-05/0.5607, allocations: 35.94 kB / 0.8204 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.5608, allocations: 13.44 kB / 0.8204 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.834e-05/0.5609, allocations: 120 kB / 0.8205 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.5609, allocations: 11.11 kB / 0.8206 GB, free: 15.07 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.5609, allocations: 17.52 kB / 0.8206 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.561, allocations: 49.03 kB / 0.8206 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.561, allocations: 0 / 0.8206 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.561, allocations: 0.6094 kB / 0.8206 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.561, allocations: 3.938 kB / 0.8206 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.552e-05/0.5611, allocations: 18.17 kB / 0.8206 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004436/0.5615, allocations: 294.1 kB / 0.8209 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.009e-05/0.5616, allocations: 33.95 kB / 0.821 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.462e-05/0.5616, allocations: 12.39 kB / 0.821 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 7.084e-06/0.5616, allocations: 0 / 0.821 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.5618, allocations: 107.2 kB / 0.8211 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.5618, allocations: 0 / 0.8211 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9): time 0.0002732/0.5621, allocations: 125.8 kB / 0.8212 GB, free: 14.58 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.5622, allocations: 58.36 kB / 0.8212 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.738e-05/0.5622, allocations: 121.8 kB / 0.8214 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.5623, allocations: 30.05 kB / 0.8214 GB, free: 14.37 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.776e-05/0.5623, allocations: 90.83 kB / 0.8215 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.5624, allocations: 22.77 kB / 0.8215 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.458e-05/0.5624, allocations: 53.56 kB / 0.8215 GB, free: 14.24 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.5625, allocations: 322.8 kB / 0.8219 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.5627, allocations: 129.2 kB / 0.822 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.5628, allocations: 173.8 kB / 0.8221 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.563, allocations: 192.3 kB / 0.8223 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.563, allocations: 0 / 0.8223 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003647/0.5634, allocations: 346.3 kB / 0.8227 GB, free: 13.29 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.5634, allocations: 69.94 kB / 0.8227 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.5634, allocations: 7.578 kB / 0.8227 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.5634, allocations: 2.219 kB / 0.8227 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.646e-05/0.5635, allocations: 4.219 kB / 0.8227 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.5635, allocations: 3.312 kB / 0.8227 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.5637, allocations: 47.88 kB / 0.8228 GB, free: 13.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.5637, allocations: 22.78 kB / 0.8228 GB, free: 13.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 (onCounter.y,$PRE.onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,reset.y,$PRE.reset.y,$whenCondition2,booPul.y,$PRE.booPul.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001028/0.5638, allocations: 132.2 kB / 0.8229 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.5638, allocations: 11.08 kB / 0.8229 GB, free: 13.07 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.646e-05/0.5639, allocations: 10.62 kB / 0.823 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5639, allocations: 1.281 kB / 0.823 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5639, allocations: 0 / 0.823 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.5639, allocations: 1.266 kB / 0.823 GB, free: 13.06 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000327/0.5642, allocations: 322.7 kB / 0.8233 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5642, allocations: 1.438 kB / 0.8233 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.618e-06/0.5642, allocations: 1.922 kB / 0.8233 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5642, allocations: 4 kB / 0.8233 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.5642, allocations: 6.297 kB / 0.8233 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.5642, allocations: 5.469 kB / 0.8233 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5642, allocations: 0.75 kB / 0.8233 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.5644, allocations: 199.6 kB / 0.8235 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 9.749e-06/0.5644, allocations: 7.375 kB / 0.8235 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.5644, allocations: 2.812 kB / 0.8235 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.924e-05/0.5644, allocations: 7.938 kB / 0.8235 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.043e-05/0.5645, allocations: 6.703 kB / 0.8235 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.5645, allocations: 5.594 kB / 0.8235 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.229e-05/0.5645, allocations: 91.19 kB / 0.8236 GB, free: 12.51 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5645, allocations: 7.938 kB / 0.8236 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001904/0.5647, allocations: 32.84 kB / 0.8236 GB, free: 12.5 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0003873/0.5651, allocations: 0.7372 MB / 0.8243 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002973/0.5654, allocations: 288.4 kB / 0.8246 GB, free: 11.58 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5654, allocations: 1.344 kB / 0.8246 GB, free: 11.58 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.242e-05/0.5654, allocations: 34.48 kB / 0.8247 GB, free: 11.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.5657, allocations: 24.64 kB / 0.8247 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.5673, allocations: 2.097 MB / 0.8267 GB, free: 9.746 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.932e-05/0.5674, allocations: 74.47 kB / 0.8268 GB, free: 9.676 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 2.851e-05/0.5674, allocations: 5.328 kB / 0.8268 GB, free: 9.676 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/0.5675, allocations: 26.16 kB / 0.8268 GB, free: 9.656 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/0.5675, allocations: 4 kB / 0.8268 GB, free: 9.652 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.5888, allocations: 3.771 MB / 0.8305 GB, free: 8.609 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.929/7.518, allocations: 4.094 kB / 0.8305 GB, free: 8.609 MB / 0.6198 GB " [Timeout remaining time 652] (rm -f IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > IDEAS_IDEAS.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.524008118081838] Failed to read output from testmodel.py, exit status != 0: 7.59920458169654 7.616608599 7.053247836 Calling exit ...