Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 100.8 kB / 16.27 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 186.4 kB / 17.19 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7479/0.7479, allocations: 122.9 MB / 413.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 59.91 kB / 0.4912 GB, free: 7.383 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.328, allocations: 77.92 MB / 0.5673 GB, free: 32.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.002794/0.3309, allocations: 1.809 MB / 0.569 GB, free: 31.3 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008724/0.3318, allocations: 0.5352 MB / 0.5696 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.3319, allocations: 7.938 kB / 0.5696 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.332, allocations: 26.78 kB / 0.5696 GB, free: 30.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.657e-05/0.3321, allocations: 27.72 kB / 0.5696 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.3323, allocations: 68.2 kB / 0.5697 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002/0.3325, allocations: 167.8 kB / 0.5699 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.3327, allocations: 55.52 kB / 0.5699 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.414e-05/0.3328, allocations: 57.33 kB / 0.57 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.253e-05/0.3329, allocations: 57.77 kB / 0.57 GB, free: 30.69 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.3329, allocations: 10.91 kB / 0.57 GB, free: 30.69 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.392e-05/0.3329, allocations: 9.281 kB / 0.57 GB, free: 30.69 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.576e-05/0.333, allocations: 30.19 kB / 0.5701 GB, free: 30.67 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.297e-05/0.3331, allocations: 65.33 kB / 0.5701 GB, free: 30.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.3333, allocations: 136.7 kB / 0.5703 GB, free: 30.56 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3333, allocations: 3.938 kB / 0.5703 GB, free: 30.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.3333, allocations: 1.125 kB / 0.5703 GB, free: 30.55 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3333, allocations: 1 kB / 0.5703 GB, free: 30.55 MB / 446.1 MB 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.0007428/0.3341, allocations: 471.2 kB / 0.5707 GB, free: 30.13 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3341, allocations: 10.09 kB / 0.5707 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.278e-05/0.3342, allocations: 45.7 kB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.331e-05/0.3342, allocations: 19.25 kB / 0.5708 GB, free: 30.08 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.3344, allocations: 231.1 kB / 0.571 GB, free: 29.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.3345, allocations: 10.41 kB / 0.571 GB, free: 29.84 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.3345, allocations: 12.69 kB / 0.571 GB, free: 29.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.3348, allocations: 152 kB / 0.5712 GB, free: 29.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.3348, allocations: 0.5625 kB / 0.5712 GB, free: 29.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.3348, allocations: 6.188 kB / 0.5712 GB, free: 29.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.3348, allocations: 3.094 kB / 0.5712 GB, free: 29.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.3351, allocations: 74.66 kB / 0.5712 GB, free: 29.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.3359, allocations: 0.738 MB / 0.572 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/0.336, allocations: 53.38 kB / 0.572 GB, free: 29.01 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3362, allocations: 31.06 kB / 0.572 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.3362, allocations: 2.562 kB / 0.5721 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002302/0.3364, allocations: 128.4 kB / 0.5722 GB, free: 28.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.3364, allocations: 0.75 kB / 0.5722 GB, free: 28.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004913/0.3369, allocations: 168.4 kB / 0.5723 GB, free: 28.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.337, allocations: 131.2 kB / 0.5725 GB, free: 28.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001965/0.3372, allocations: 204.3 kB / 0.5727 GB, free: 28.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.3372, allocations: 32.36 kB / 0.5727 GB, free: 28.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.558e-05/0.3373, allocations: 130.6 kB / 0.5728 GB, free: 28.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.3374, allocations: 37.77 kB / 0.5728 GB, free: 28.36 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.514e-05/0.3374, allocations: 44.72 kB / 0.5729 GB, free: 28.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.797e-05/0.3375, allocations: 324.4 kB / 0.5732 GB, free: 28.01 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.3376, allocations: 42.56 kB / 0.5732 GB, free: 28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.3378, allocations: 144 kB / 0.5734 GB, free: 27.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003263/0.3381, allocations: 209.4 kB / 0.5736 GB, free: 27.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.3381, allocations: 1.766 kB / 0.5736 GB, free: 27.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003885/0.3385, allocations: 206.9 kB / 0.5738 GB, free: 27.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.3386, allocations: 9.391 kB / 0.5738 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.3386, allocations: 2.75 kB / 0.5738 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3386, allocations: 6.375 kB / 0.5738 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.3387, allocations: 34.44 kB / 0.5738 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.3387, allocations: 6.484 kB / 0.5738 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.3389, allocations: 28.64 kB / 0.5739 GB, free: 27.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.3389, allocations: 8.594 kB / 0.5739 GB, free: 27.55 MB / 446.1 MB 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 7.846e-05/0.339, allocations: 142.3 kB / 0.574 GB, free: 27.42 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.727e-05/0.339, allocations: 21.83 kB / 0.574 GB, free: 27.41 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.3391, allocations: 23.95 kB / 0.574 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3391, allocations: 2.078 kB / 0.574 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3391, allocations: 1.406 kB / 0.5741 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3391, allocations: 2.688 kB / 0.5741 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006065/0.3397, allocations: 0.5116 MB / 0.5746 GB, free: 26.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3397, allocations: 1.344 kB / 0.5746 GB, free: 26.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001271/0.3398, allocations: 19 kB / 0.5746 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3399, allocations: 4.031 kB / 0.5746 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.3399, allocations: 5.234 kB / 0.5746 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.3399, allocations: 10.97 kB / 0.5746 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3399, allocations: 2.031 kB / 0.5746 GB, free: 26.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004502/0.3403, allocations: 360.5 kB / 0.5749 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.3404, allocations: 95.34 kB / 0.575 GB, free: 26.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.3404, allocations: 3.234 kB / 0.575 GB, free: 26.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.3406, allocations: 20.98 kB / 0.5751 GB, free: 26.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.3407, allocations: 11.12 kB / 0.5751 GB, free: 26.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.3407, allocations: 5.234 kB / 0.5751 GB, free: 26.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.3408, allocations: 143.3 kB / 0.5752 GB, free: 26.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3408, allocations: 0 / 0.5752 GB, free: 26.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003322/0.3411, allocations: 27.73 kB / 0.5752 GB, free: 26.47 MB / 446.1 MB 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.0006261/0.3418, allocations: 0.8961 MB / 0.5761 GB, free: 25.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.3421, allocations: 121.6 kB / 0.5762 GB, free: 25.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3421, allocations: 1.188 kB / 0.5762 GB, free: 25.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3422, allocations: 49.25 kB / 0.5763 GB, free: 25.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005441/0.3428, allocations: 67.84 kB / 0.5763 GB, free: 25.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.3449, allocations: 2.263 MB / 0.5785 GB, free: 23.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.3451, allocations: 0.724 MB / 0.5793 GB, free: 23.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.637e-05/0.3452, allocations: 20.81 kB / 0.5793 GB, free: 23.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.5e-05/0.3453, allocations: 49.69 kB / 0.5793 GB, free: 23.01 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3453, allocations: 0 / 0.5793 GB, free: 23.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.3657, allocations: 3.964 MB / 0.5832 GB, free: 21.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.247/7.613, allocations: 10.03 kB / 0.5832 GB, free: 21.83 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)