Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001313/0.001313, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 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.001595/0.001595, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 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 1.516/1.516, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002475/0.002475, allocations: 287.6 kB / 309.8 MB, free: 3.469 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.092/1.092, allocations: 180.6 MB / 0.5338 GB, free: 12.39 MB / 398.1 MB " [Timeout remaining time 178] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.003087/0.003087, allocations: 100.1 kB / 0.7347 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6/0.6031, allocations: 95.34 MB / 0.8278 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00304/0.6062, allocations: 1.876 MB / 0.8296 GB, free: 1.719 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0009503/0.6071, allocations: 0.5798 MB / 0.8302 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.6072, allocations: 6.562 kB / 0.8302 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001458/0.6074, allocations: 21.47 kB / 0.8302 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.898e-05/0.6074, allocations: 28.75 kB / 0.8302 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.6077, allocations: 66.28 kB / 0.8303 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.6079, allocations: 179.8 kB / 0.8305 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.608, allocations: 33.28 kB / 0.8305 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 8.826e-05/0.6081, allocations: 59.83 kB / 0.8306 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.977e-05/0.6082, allocations: 58.67 kB / 0.8306 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.6082, allocations: 10.5 kB / 0.8306 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 1.973e-05/0.6082, allocations: 9.125 kB / 0.8306 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.974e-05/0.6083, allocations: 28.72 kB / 0.8307 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.665e-05/0.6083, allocations: 72.72 kB / 0.8307 GB, free: 1 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.6086, allocations: 130.6 kB / 0.8309 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.6086, allocations: 2.625 kB / 0.8309 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.834e-06/0.6086, allocations: 0 / 0.8309 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.6086, allocations: 4 kB / 0.8309 GB, free: 0.9375 MB / 0.5762 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.0007134/0.6093, allocations: 476.7 kB / 0.8313 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.6093, allocations: 8.562 kB / 0.8313 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.51e-05/0.6094, allocations: 2.812 kB / 0.8313 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.49e-05/0.6094, allocations: 46.67 kB / 0.8314 GB, free: 472 kB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.32e-05/0.6094, allocations: 22.44 kB / 0.8314 GB, free: 460 kB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.6097, allocations: 241 kB / 0.8316 GB, free: 220 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.6098, allocations: 10.28 kB / 0.8316 GB, free: 216 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.6098, allocations: 12.28 kB / 0.8316 GB, free: 212 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.6101, allocations: 151.6 kB / 0.8318 GB, free: 104 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.6101, allocations: 0.7969 kB / 0.8318 GB, free: 104 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.6101, allocations: 4 kB / 0.8318 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.6101, allocations: 2.688 kB / 0.8318 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.6104, allocations: 70.3 kB / 0.8319 GB, free: 84 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00107/0.6114, allocations: 0.7388 MB / 0.8326 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.6116, allocations: 45.72 kB / 0.8326 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.6117, allocations: 35.64 kB / 0.8327 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.6118, allocations: 7.875 kB / 0.8327 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002828/0.612, allocations: 124.1 kB / 0.8328 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.612, allocations: 0 / 0.8328 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0005778/0.6126, allocations: 170.6 kB / 0.833 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.6127, allocations: 133.2 kB / 0.8331 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.613, allocations: 202 kB / 0.8333 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.613, allocations: 26.36 kB / 0.8333 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.6131, allocations: 133.5 kB / 0.8334 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.6132, allocations: 39.14 kB / 0.8335 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/0.6133, allocations: 44.77 kB / 0.8335 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001802/0.6134, allocations: 328.5 kB / 0.8338 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.6136, allocations: 38.88 kB / 0.8339 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.6138, allocations: 155.4 kB / 0.834 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.6142, allocations: 197.8 kB / 0.8342 GB, free: 14 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.6142, allocations: 3.938 kB / 0.8342 GB, free: 14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004254/0.6146, allocations: 205.9 kB / 0.8344 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.6146, allocations: 5.406 kB / 0.8344 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.6146, allocations: 4.516 kB / 0.8344 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.6146, allocations: 7.562 kB / 0.8344 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.6148, allocations: 43.16 kB / 0.8345 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.6148, allocations: 6.719 kB / 0.8345 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.6149, allocations: 36.47 kB / 0.8345 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.6149, allocations: 9.25 kB / 0.8345 GB, free: 13.87 MB / 0.5919 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.0001431/0.6151, allocations: 134.3 kB / 0.8346 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.6151, allocations: 21.72 kB / 0.8346 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.837e-05/0.6152, allocations: 19.83 kB / 0.8347 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.6152, allocations: 7.359 kB / 0.8347 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.6152, allocations: 2.656 kB / 0.8347 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.6152, allocations: 0.6562 kB / 0.8347 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008446/0.616, allocations: 0.5132 MB / 0.8352 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.616, allocations: 4.547 kB / 0.8352 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.6161, allocations: 16.94 kB / 0.8352 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.6161, allocations: 6.188 kB / 0.8352 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.6162, allocations: 3.328 kB / 0.8352 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.6162, allocations: 7.875 kB / 0.8352 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.6162, allocations: 2.391 kB / 0.8352 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.6168, allocations: 355 kB / 0.8356 GB, free: 13 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.31e-05/0.6169, allocations: 93.66 kB / 0.8356 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.6169, allocations: 6.328 kB / 0.8357 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.6171, allocations: 15.88 kB / 0.8357 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.6171, allocations: 14.53 kB / 0.8357 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.6171, allocations: 4.375 kB / 0.8357 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001457/0.6173, allocations: 144.7 kB / 0.8358 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6173, allocations: 3 kB / 0.8358 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003323/0.6176, allocations: 28.2 kB / 0.8359 GB, free: 12.78 MB / 0.5919 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.0009073/0.6185, allocations: 0.8958 MB / 0.8367 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003511/0.6189, allocations: 108.1 kB / 0.8368 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.6189, allocations: 5.406 kB / 0.8368 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.619, allocations: 46.39 kB / 0.8369 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005738/0.6196, allocations: 74.05 kB / 0.837 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.6226, allocations: 2.277 MB / 0.8392 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.623, allocations: 0.7186 MB / 0.8399 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.557e-05/0.6231, allocations: 24.53 kB / 0.8399 GB, free: 9.324 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.686e-05/0.6232, allocations: 51.48 kB / 0.8399 GB, free: 9.289 MB / 0.5919 GB Notification: Performance of SimCode: time 3e-07/0.6232, allocations: 0 / 0.8399 GB, free: 9.289 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.6458, allocations: 4.109 MB / 0.844 GB, free: 8.707 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.421/9.067, allocations: 3.578 kB / 0.844 GB, free: 8.707 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.219910922984127] Failed to read output from testmodel.py, exit status != 0: 9.196276031027082 9.223330187 8.610000552 Calling exit ...