Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.326/1.326, allocations: 252 MB / 267.3 MB, free: 10.83 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009308/0.0009311, allocations: 172.2 kB / 327 MB, free: 2.066 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.4 MB / 0.578 GB, free: 20.07 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000705/0.000705, allocations: 90.34 kB / 0.6826 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003426, allocations: 8.781 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2014, allocations: 106.3 MB / 0.9009 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001806/0.2032, allocations: 1.534 MB / 0.9024 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008599/0.2041, allocations: 0.5695 MB / 0.903 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.2043, allocations: 11.88 kB / 0.903 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.2044, allocations: 15.8 kB / 0.903 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.616e-05/0.2045, allocations: 19.86 kB / 0.903 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.2047, allocations: 63.86 kB / 0.9031 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.2049, allocations: 155.5 kB / 0.9032 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.2051, allocations: 45.64 kB / 0.9033 GB, free: 60.78 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.205e-05/0.2051, allocations: 47.73 kB / 0.9033 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.328e-05/0.2052, allocations: 51.64 kB / 0.9034 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.2052, allocations: 4 kB / 0.9034 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.623e-05/0.2052, allocations: 4 kB / 0.9034 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.744e-05/0.2053, allocations: 19.86 kB / 0.9034 GB, free: 60.65 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.097e-05/0.2053, allocations: 89.23 kB / 0.9035 GB, free: 60.56 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.2055, allocations: 111.8 kB / 0.9036 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2055, allocations: 0 / 0.9036 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2055, allocations: 0 / 0.9036 GB, free: 60.45 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.2055, allocations: 0 / 0.9036 GB, free: 60.45 MB / 0.6042 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.0005851/0.2061, allocations: 454.9 kB / 0.904 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2061, allocations: 12.03 kB / 0.904 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.2062, allocations: 42.73 kB / 0.9041 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.2062, allocations: 28.69 kB / 0.9041 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000189/0.2064, allocations: 231.8 kB / 0.9043 GB, free: 59.6 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.2064, allocations: 12.38 kB / 0.9043 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.2065, allocations: 16.36 kB / 0.9043 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.2067, allocations: 152.1 kB / 0.9045 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.2067, allocations: 0 / 0.9045 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.2068, allocations: 8 kB / 0.9045 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.2068, allocations: 4 kB / 0.9045 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002158/0.207, allocations: 87.81 kB / 0.9046 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007389/0.2077, allocations: 0.7353 MB / 0.9053 GB, free: 58.51 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.2079, allocations: 62.55 kB / 0.9054 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.85e-05/0.208, allocations: 36.83 kB / 0.9054 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.208, allocations: 4 kB / 0.9054 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000243/0.2083, allocations: 134.6 kB / 0.9055 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.2083, allocations: 0 / 0.9055 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0004403/0.2087, allocations: 181.7 kB / 0.9057 GB, free: 58.05 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.256e-05/0.2088, allocations: 132.5 kB / 0.9058 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.2089, allocations: 202.9 kB / 0.906 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.2089, allocations: 37.75 kB / 0.906 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.377e-05/0.209, allocations: 123.9 kB / 0.9062 GB, free: 57.52 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.209, allocations: 39.59 kB / 0.9062 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.924e-06/0.2091, allocations: 8 kB / 0.9062 GB, free: 57.47 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.456e-05/0.2091, allocations: 326.8 kB / 0.9065 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.2092, allocations: 39.97 kB / 0.9066 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.2094, allocations: 159.9 kB / 0.9067 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.2097, allocations: 214.4 kB / 0.9069 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2097, allocations: 4 kB / 0.9069 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003721/0.21, allocations: 213.5 kB / 0.9071 GB, free: 56.42 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.2101, allocations: 8 kB / 0.9071 GB, free: 56.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2101, allocations: 8 kB / 0.9071 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2101, allocations: 4 kB / 0.9071 GB, free: 56.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.2102, allocations: 43.91 kB / 0.9072 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.2102, allocations: 4 kB / 0.9072 GB, free: 56.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.2104, allocations: 27.83 kB / 0.9072 GB, free: 56.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.2104, allocations: 15.98 kB / 0.9072 GB, free: 56.31 MB / 0.6042 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 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 8.346e-05/0.2105, allocations: 137.7 kB / 0.9074 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.2105, allocations: 19.8 kB / 0.9074 GB, free: 56.14 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.898e-05/0.2106, allocations: 17.41 kB / 0.9074 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2106, allocations: 4 kB / 0.9074 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2106, allocations: 0 / 0.9074 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2106, allocations: 3.984 kB / 0.9074 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006003/0.2112, allocations: 0.5287 MB / 0.9079 GB, free: 55.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2112, allocations: 0 / 0.9079 GB, free: 55.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.2113, allocations: 27.91 kB / 0.908 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2113, allocations: 4 kB / 0.908 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.2113, allocations: 8.312 kB / 0.908 GB, free: 55.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2114, allocations: 0 / 0.908 GB, free: 55.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2114, allocations: 11.94 kB / 0.908 GB, free: 55.48 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004114/0.2118, allocations: 377.8 kB / 0.9083 GB, free: 55.09 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.2118, allocations: 88.92 kB / 0.9084 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.2119, allocations: 4 kB / 0.9084 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.212, allocations: 24.02 kB / 0.9084 GB, free: 54.96 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.2121, allocations: 19.92 kB / 0.9085 GB, free: 54.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.2121, allocations: 4 kB / 0.9085 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.891e-05/0.2122, allocations: 140.4 kB / 0.9086 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of sort global known variables: time 6.31e-07/0.2122, allocations: 0 / 0.9086 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002978/0.2125, allocations: 31.94 kB / 0.9086 GB, free: 54.77 MB / 0.6042 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.0006235/0.2131, allocations: 0.9045 MB / 0.9095 GB, free: 53.83 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002885/0.2134, allocations: 132.1 kB / 0.9096 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2134, allocations: 0 / 0.9096 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.2136, allocations: 55.84 kB / 0.9097 GB, free: 53.64 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005328/0.2141, allocations: 71.44 kB / 0.9098 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.2161, allocations: 2.333 MB / 0.912 GB, free: 51.04 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001305/0.2162, allocations: 0.7206 MB / 0.9127 GB, free: 50.3 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.221e-05/0.2163, allocations: 17.55 kB / 0.9128 GB, free: 50.28 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.001e-05/0.2164, allocations: 51.42 kB / 0.9128 GB, free: 50.23 MB / 0.6042 GB Notification: Performance of SimCode: time 2.11e-07/0.2164, allocations: 0 / 0.9128 GB, free: 50.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01432/0.2307, allocations: 3.597 MB / 0.9163 GB, free: 46.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.231, allocations: 221 kB / 0.9165 GB, free: 46.54 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.713/1.944, allocations: 2.031 kB / 0.9165 GB, free: 46.54 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)