Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_maint_8_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 8.0.1-maint.8.0.x/package.mo): time 1.888/1.888, allocations: 288.2 MB / 303.2 MB, free: 8.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.00108, allocations: 182.5 kB / 371.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.675/1.675, allocations: 205.4 MB / 0.6305 GB, free: 10 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008528/0.0008528, allocations: 87.48 kB / 0.7439 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004767, allocations: 11.81 kB / 0.8668 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2362, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00181/0.2381, allocations: 1.477 MB / 0.9809 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009189/0.239, allocations: 0.5505 MB / 0.9815 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.2392, allocations: 7.938 kB / 0.9815 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 3.05e-05/0.2392, allocations: 3.938 kB / 0.9815 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.2394, allocations: 31.88 kB / 0.9815 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.2396, allocations: 55.86 kB / 0.9815 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.2398, allocations: 119.7 kB / 0.9817 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.2399, allocations: 41.83 kB / 0.9817 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.441e-05/0.24, allocations: 43.78 kB / 0.9817 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.382e-05/0.2401, allocations: 39.78 kB / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.2401, allocations: 4 kB / 0.9818 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.568e-05/0.2401, allocations: 7.938 kB / 0.9818 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.169e-05/0.2402, allocations: 19.91 kB / 0.9818 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.719e-05/0.2402, allocations: 45.64 kB / 0.9819 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.445e-05/0.2403, allocations: 88.06 kB / 0.9819 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2403, allocations: 4 kB / 0.9819 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2403, allocations: 0 / 0.9819 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.2404, allocations: 0 / 0.9819 GB, free: 25.06 MB / 0.6198 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.0006734/0.241, allocations: 450.6 kB / 0.9824 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2411, allocations: 20.02 kB / 0.9824 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.2411, allocations: 42.55 kB / 0.9824 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.2412, allocations: 19.81 kB / 0.9825 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002217/0.2414, allocations: 230.6 kB / 0.9827 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2415, allocations: 8 kB / 0.9827 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.2415, allocations: 12 kB / 0.9827 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.2418, allocations: 156.9 kB / 0.9828 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.2418, allocations: 0 / 0.9828 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.2418, allocations: 0 / 0.9828 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.2418, allocations: 7.938 kB / 0.9828 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.2421, allocations: 91.83 kB / 0.9829 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008293/0.2429, allocations: 0.7317 MB / 0.9837 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.243, allocations: 54.5 kB / 0.9837 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.993e-05/0.2431, allocations: 4 kB / 0.9837 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.2433, allocations: 134.6 kB / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.2433, allocations: 0 / 0.9838 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0004519/0.2438, allocations: 177.5 kB / 0.984 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.2439, allocations: 136.5 kB / 0.9841 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.244, allocations: 199.7 kB / 0.9843 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.244, allocations: 29.7 kB / 0.9844 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.2441, allocations: 143.8 kB / 0.9845 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.2442, allocations: 31.7 kB / 0.9845 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.055e-06/0.2442, allocations: 7.938 kB / 0.9845 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.2443, allocations: 334.8 kB / 0.9848 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.2444, allocations: 44.34 kB / 0.9849 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.2445, allocations: 139.3 kB / 0.985 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001337/0.2447, allocations: 67.91 kB / 0.9851 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.2447, allocations: 4 kB / 0.9851 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003479/0.2451, allocations: 209.1 kB / 0.9853 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.2451, allocations: 9.875 kB / 0.9853 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2451, allocations: 4.5 kB / 0.9853 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.2451, allocations: 8 kB / 0.9853 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2452, allocations: 44.14 kB / 0.9854 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.2453, allocations: 7.953 kB / 0.9854 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.2454, allocations: 31.73 kB / 0.9854 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.2454, allocations: 12 kB / 0.9854 GB, free: 21.18 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.752e-05/0.2455, allocations: 146.1 kB / 0.9855 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/0.2456, allocations: 19.81 kB / 0.9856 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.2456, allocations: 17.41 kB / 0.9856 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.2456, allocations: 4 kB / 0.9856 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.2456, allocations: 0 / 0.9856 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.2457, allocations: 7.938 kB / 0.9856 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006522/0.2463, allocations: 0.5136 MB / 0.9861 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2463, allocations: 11.98 kB / 0.9861 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.2465, allocations: 23.98 kB / 0.9861 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.2465, allocations: 0 / 0.9861 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.2465, allocations: 8 kB / 0.9861 GB, free: 20.38 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2465, allocations: 3.953 kB / 0.9861 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2465, allocations: 4 kB / 0.9861 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006651/0.2472, allocations: 405.2 kB / 0.9865 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.2472, allocations: 92.92 kB / 0.9866 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.2473, allocations: 11.94 kB / 0.9866 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.2474, allocations: 20.02 kB / 0.9866 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.2475, allocations: 7.984 kB / 0.9867 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.2475, allocations: 8 kB / 0.9867 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.517e-05/0.2476, allocations: 144.4 kB / 0.9868 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2476, allocations: 0 / 0.9868 GB, free: 19.63 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003242/0.248, allocations: 24 kB / 0.9868 GB, free: 19.61 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006605/0.2486, allocations: 1.155 MB / 0.9879 GB, free: 18.41 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003164/0.249, allocations: 127.7 kB / 0.9881 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.249, allocations: 1 kB / 0.9881 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.2491, allocations: 59.97 kB / 0.9881 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.2495, allocations: 61.27 kB / 0.9882 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001877/0.2514, allocations: 3.498 MB / 0.9916 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/0.2516, allocations: 0.7284 MB / 0.9923 GB, free: 13.78 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.08e-05/0.2517, allocations: 26.08 kB / 0.9923 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.268e-05/0.2518, allocations: 51.42 kB / 0.9924 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of SimCode: time 7.91e-07/0.2518, allocations: 0 / 0.9924 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01487/0.2666, allocations: 3.542 MB / 0.9958 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002161/0.2669, allocations: 202.5 kB / 0.996 GB, free: 10.08 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/2.028, allocations: 4.062 kB / 0.996 GB, free: 10.07 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)