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.001551/0.001551, 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.001965/0.001965, allocations: 188.1 kB / 16.62 MB, free: 6.582 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.501/1.501, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.678/1.678, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.002117/0.002117, allocations: 70.25 kB / 0.6718 GB, free: 26.16 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2115, allocations: 114.5 MB / 0.7836 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002964/0.2145, allocations: 1.815 MB / 0.7854 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001105/0.2157, allocations: 0.5825 MB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.2158, allocations: 7.938 kB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.216, allocations: 23.72 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.46e-05/0.2161, allocations: 27.73 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.2163, allocations: 63.86 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002457/0.2166, allocations: 171.5 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.2168, allocations: 53.64 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.2169, allocations: 51.73 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.419e-05/0.217, allocations: 59.69 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.217, allocations: 12 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 2.097e-05/0.217, allocations: 8 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.2171, allocations: 31.84 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.228e-05/0.2171, allocations: 67.61 kB / 0.7865 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.2174, allocations: 131.7 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2174, allocations: 0 / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.555e-06/0.2174, allocations: 0 / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.2174, 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.0007802/0.2182, allocations: 478.7 kB / 0.7871 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.2182, allocations: 11.97 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.916e-05/0.2183, allocations: 46.73 kB / 0.7872 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.396e-05/0.2183, allocations: 16.75 kB / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.2187, allocations: 239.8 kB / 0.7874 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.2187, allocations: 8.375 kB / 0.7874 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.403e-05/0.2188, allocations: 12.38 kB / 0.7874 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.219, allocations: 157.1 kB / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.2191, allocations: 0 / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2191, allocations: 4 kB / 0.7876 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2191, allocations: 7.938 kB / 0.7876 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.2193, allocations: 63.89 kB / 0.7876 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009041/0.2202, allocations: 0.7431 MB / 0.7884 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.2204, allocations: 54.48 kB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.2205, allocations: 32.84 kB / 0.7884 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.2205, allocations: 0 / 0.7884 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002519/0.2208, allocations: 130.7 kB / 0.7886 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.2208, allocations: 4 kB / 0.7886 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0004943/0.2213, allocations: 169.5 kB / 0.7887 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.2214, allocations: 128.5 kB / 0.7889 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.2215, allocations: 211.3 kB / 0.7891 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.2216, allocations: 29.7 kB / 0.7891 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.068e-05/0.2217, allocations: 132.2 kB / 0.7892 GB, free: 7.227 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.2217, allocations: 35.61 kB / 0.7893 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.2218, allocations: 41.7 kB / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.2219, allocations: 330.8 kB / 0.7896 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.222, allocations: 35.97 kB / 0.7896 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.2221, allocations: 152.9 kB / 0.7898 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002841/0.2224, allocations: 202.3 kB / 0.79 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.2224, allocations: 8 kB / 0.79 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003619/0.2228, allocations: 197.5 kB / 0.7902 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.2228, allocations: 8 kB / 0.7902 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2229, allocations: 8.031 kB / 0.7902 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2229, allocations: 4 kB / 0.7902 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.223, allocations: 39.91 kB / 0.7902 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.223, allocations: 4 kB / 0.7902 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.2232, allocations: 23.83 kB / 0.7903 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.2232, 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.0001063/0.2233, allocations: 137.7 kB / 0.7904 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.2234, allocations: 19.81 kB / 0.7904 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.801e-05/0.2234, allocations: 21.39 kB / 0.7904 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.2234, allocations: 4 kB / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2234, allocations: 0 / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.2234, allocations: 4 kB / 0.7904 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007133/0.2242, allocations: 0.5092 MB / 0.7909 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2242, allocations: 4 kB / 0.791 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.2243, allocations: 15.98 kB / 0.791 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2243, allocations: 4 kB / 0.791 GB, free: 5.238 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.2243, allocations: 7.984 kB / 0.791 GB, free: 5.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.2243, allocations: 3.938 kB / 0.791 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.2243, allocations: 4.312 kB / 0.791 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004639/0.2248, allocations: 360.1 kB / 0.7913 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.648e-05/0.2249, allocations: 88.92 kB / 0.7914 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.2249, allocations: 12 kB / 0.7914 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001612/0.2251, allocations: 15.97 kB / 0.7914 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.2251, allocations: 23.86 kB / 0.7915 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.2252, allocations: 7.984 kB / 0.7915 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000104/0.2253, allocations: 140.6 kB / 0.7916 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2253, allocations: 0 / 0.7916 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003239/0.2256, allocations: 27.94 kB / 0.7916 GB, free: 4.52 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.000733/0.2263, allocations: 0.8995 MB / 0.7925 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003066/0.2267, allocations: 116.2 kB / 0.7926 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2267, allocations: 0 / 0.7926 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.2268, allocations: 48.28 kB / 0.7927 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005397/0.2274, allocations: 84.52 kB / 0.7927 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.2297, allocations: 2.274 MB / 0.795 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.2299, allocations: 0.7203 MB / 0.7957 GB, free: 148 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.035e-05/0.23, allocations: 21.55 kB / 0.7957 GB, free: 128 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.2301, allocations: 47.42 kB / 0.7957 GB, free: 80 kB / 0.6075 GB Notification: Performance of SimCode: time 5.91e-07/0.2301, allocations: 3.938 kB / 0.7957 GB, free: 76 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.2497, allocations: 3.976 MB / 0.7996 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.155/7.404, allocations: 7.922 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)