Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_8_Buildings_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.001351/0.001351, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 187.9 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.311/1.311, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.697/1.697, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001656, allocations: 76.25 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2069, allocations: 114.6 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003099/0.21, allocations: 1.811 MB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.2112, allocations: 0.5825 MB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.715e-05/0.2113, allocations: 0 / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.2115, allocations: 31.67 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.336e-05/0.2116, allocations: 23.72 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.2118, allocations: 67.91 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.2121, allocations: 171.4 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.2123, allocations: 49.66 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.969e-05/0.2124, allocations: 47.78 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.83e-05/0.2125, allocations: 63.69 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.2125, allocations: 11.94 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.2126, allocations: 12 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.124e-05/0.2126, allocations: 27.86 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.042e-05/0.2127, allocations: 71.59 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.2129, allocations: 127.8 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2129, allocations: 3.938 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2129, allocations: 0 / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.2129, allocations: 0 / 0.7866 GB, free: 10.14 MB / 0.6075 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.0007963/0.2137, allocations: 474.7 kB / 0.7871 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.2138, allocations: 8.031 kB / 0.7871 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.984e-05/0.2138, allocations: 50.67 kB / 0.7872 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.2139, allocations: 24.69 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.2142, allocations: 231.9 kB / 0.7874 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.2142, allocations: 8.375 kB / 0.7874 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.2142, allocations: 16.38 kB / 0.7874 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.2145, allocations: 153.9 kB / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2146, allocations: 0 / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.2146, allocations: 11.98 kB / 0.7876 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.2146, allocations: 4 kB / 0.7876 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000216/0.2148, allocations: 63.89 kB / 0.7876 GB, free: 9 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008795/0.2157, allocations: 0.7469 MB / 0.7884 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.2158, allocations: 50.55 kB / 0.7884 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.216, allocations: 32.84 kB / 0.7885 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.216, allocations: 0 / 0.7885 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.2162, allocations: 118.7 kB / 0.7886 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 3.276e-06/0.2162, allocations: 8 kB / 0.7886 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004815/0.2167, allocations: 165.3 kB / 0.7887 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.2168, allocations: 136.5 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.217, allocations: 211.3 kB / 0.7891 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.2171, allocations: 29.7 kB / 0.7891 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.2172, allocations: 128.2 kB / 0.7892 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.2172, allocations: 39.59 kB / 0.7893 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.918e-05/0.2173, allocations: 41.7 kB / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2174, allocations: 330.8 kB / 0.7896 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.2175, allocations: 35.97 kB / 0.7896 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.2177, allocations: 146.5 kB / 0.7898 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.2181, allocations: 198.3 kB / 0.79 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.2181, allocations: 11.94 kB / 0.79 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003839/0.2185, allocations: 201.5 kB / 0.7902 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2185, allocations: 8.031 kB / 0.7902 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.2185, allocations: 8 kB / 0.7902 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2185, allocations: 4 kB / 0.7902 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.2187, allocations: 35.92 kB / 0.7902 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.2187, allocations: 7.984 kB / 0.7902 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.2188, allocations: 23.83 kB / 0.7903 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.2188, allocations: 12 kB / 0.7903 GB, free: 6.023 MB / 0.6075 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.0001181/0.219, allocations: 137.7 kB / 0.7904 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.219, allocations: 19.81 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.386e-05/0.219, allocations: 21.39 kB / 0.7904 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2191, allocations: 4 kB / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2191, allocations: 0 / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.2191, allocations: 0 / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007572/0.2198, allocations: 0.517 MB / 0.791 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2199, allocations: 4.312 kB / 0.791 GB, free: 5.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.22, allocations: 19.98 kB / 0.791 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.22, allocations: 0 / 0.791 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.22, allocations: 8 kB / 0.791 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.22, allocations: 7.875 kB / 0.791 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.22, allocations: 4 kB / 0.791 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005168/0.2205, allocations: 360.1 kB / 0.7913 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.949e-05/0.2206, allocations: 92.95 kB / 0.7914 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.2207, allocations: 8 kB / 0.7914 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001671/0.2208, allocations: 11.92 kB / 0.7914 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.21e-05/0.2209, allocations: 19.98 kB / 0.7915 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.2209, allocations: 4 kB / 0.7915 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001135/0.221, allocations: 136.6 kB / 0.7916 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.41e-07/0.221, allocations: 0 / 0.7916 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003403/0.2214, allocations: 31.94 kB / 0.7916 GB, free: 4.523 MB / 0.6075 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.0008644/0.2222, allocations: 0.9088 MB / 0.7925 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003518/0.2226, allocations: 112.2 kB / 0.7926 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2226, allocations: 0 / 0.7926 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.2228, allocations: 48.09 kB / 0.7927 GB, free: 3.426 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.2234, allocations: 70.67 kB / 0.7927 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.226, allocations: 2.282 MB / 0.795 GB, free: 0.8906 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.2263, allocations: 0.7164 MB / 0.7957 GB, free: 148 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.642e-05/0.2264, allocations: 29.66 kB / 0.7957 GB, free: 120 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-05/0.2265, allocations: 47.42 kB / 0.7957 GB, free: 72 kB / 0.6075 GB Notification: Performance of SimCode: time 5.11e-07/0.2265, allocations: 0 / 0.7957 GB, free: 72 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.2476, allocations: 3.974 MB / 0.7996 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.896, allocations: 5.734 kB / 0.7996 GB, free: 12.2 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)