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 2.083/2.083, allocations: 288.4 MB / 303.3 MB, free: 8.18 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.0009953/0.0009955, allocations: 188.4 kB / 372 MB, free: 10.26 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.684/1.684, allocations: 205.4 MB / 0.6307 GB, free: 9.961 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.0008087/0.0008087, allocations: 98.22 kB / 0.7441 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000418/0.0004182, allocations: 15.94 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2298, allocations: 115.3 MB / 0.9796 GB, free: 27.56 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00187/0.2317, allocations: 1.484 MB / 0.9811 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008734/0.2326, allocations: 0.5543 MB / 0.9816 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2327, allocations: 3.938 kB / 0.9816 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.2328, allocations: 19.86 kB / 0.9816 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.27e-05/0.2329, allocations: 19.8 kB / 0.9817 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.2331, allocations: 55.92 kB / 0.9817 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001591/0.2333, allocations: 143.5 kB / 0.9819 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.2334, allocations: 45.81 kB / 0.9819 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.949e-05/0.2335, allocations: 39.8 kB / 0.9819 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.147e-05/0.2335, allocations: 47.72 kB / 0.982 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.994e-05/0.2336, allocations: 4 kB / 0.982 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.608e-05/0.2336, allocations: 4 kB / 0.982 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.952e-05/0.2336, allocations: 19.86 kB / 0.982 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.558e-05/0.2337, allocations: 49.64 kB / 0.9821 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.217e-05/0.2338, allocations: 84.05 kB / 0.9821 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2338, allocations: 0 / 0.9821 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2338, allocations: 0 / 0.9821 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.999e-06/0.2338, allocations: 0 / 0.9821 GB, free: 24.96 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.0005867/0.2344, allocations: 462.6 kB / 0.9826 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.2344, allocations: 12.02 kB / 0.9826 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.142e-05/0.2345, allocations: 46.55 kB / 0.9826 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.2345, allocations: 19.75 kB / 0.9827 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001925/0.2347, allocations: 226.6 kB / 0.9829 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.2347, allocations: 15.98 kB / 0.9829 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.2348, allocations: 20 kB / 0.9829 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002589/0.235, allocations: 145.9 kB / 0.983 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.2351, allocations: 0 / 0.983 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.2351, allocations: 4 kB / 0.983 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.2351, allocations: 8 kB / 0.9831 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.2353, allocations: 83.83 kB / 0.9831 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007204/0.236, allocations: 0.7317 MB / 0.9839 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.2362, allocations: 58.55 kB / 0.9839 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.2363, allocations: 40.77 kB / 0.9839 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.2363, allocations: 0 / 0.9839 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.2366, allocations: 130.7 kB / 0.9841 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 1.193e-06/0.2366, allocations: 0 / 0.9841 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0004406/0.237, allocations: 181.6 kB / 0.9842 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.2371, allocations: 140.5 kB / 0.9844 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.2372, allocations: 191.7 kB / 0.9846 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.2373, allocations: 33.69 kB / 0.9846 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.2373, allocations: 135.8 kB / 0.9847 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.2374, allocations: 39.69 kB / 0.9848 GB, free: 22 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.087e-05/0.2374, allocations: 4 kB / 0.9848 GB, free: 22 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.2375, allocations: 326.8 kB / 0.9851 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.2376, allocations: 40.34 kB / 0.9851 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.2378, allocations: 157.9 kB / 0.9853 GB, free: 21.43 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.2379, allocations: 63.95 kB / 0.9853 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2379, allocations: 4 kB / 0.9853 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003399/0.2382, allocations: 217 kB / 0.9855 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.2383, allocations: 8 kB / 0.9855 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2383, allocations: 4 kB / 0.9855 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2383, allocations: 8.438 kB / 0.9856 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.2384, allocations: 35.98 kB / 0.9856 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.2384, allocations: 15.88 kB / 0.9856 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.2386, allocations: 39.72 kB / 0.9856 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.2386, allocations: 8 kB / 0.9857 GB, free: 21.03 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 8.335e-05/0.2387, allocations: 133.7 kB / 0.9858 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.2387, allocations: 19.81 kB / 0.9858 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.2388, allocations: 25.39 kB / 0.9858 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.2388, allocations: 4 kB / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2388, allocations: 0 / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2388, allocations: 3.953 kB / 0.9858 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005969/0.2394, allocations: 0.5211 MB / 0.9863 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.2394, allocations: 0 / 0.9863 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.2395, allocations: 23.92 kB / 0.9864 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2395, allocations: 0 / 0.9864 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.2396, allocations: 7.953 kB / 0.9864 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2396, allocations: 320 / 0.9864 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2396, allocations: 8 kB / 0.9864 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004071/0.24, allocations: 380.1 kB / 0.9867 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.341e-05/0.24, allocations: 92.95 kB / 0.9868 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.2401, allocations: 4 kB / 0.9868 GB, free: 19.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.2402, allocations: 23.94 kB / 0.9869 GB, free: 19.69 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.2403, allocations: 11.98 kB / 0.9869 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.2403, allocations: 4 kB / 0.9869 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.782e-05/0.2404, allocations: 144.4 kB / 0.987 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2404, allocations: 0 / 0.987 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002868/0.2407, allocations: 28 kB / 0.987 GB, free: 19.51 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.0005794/0.2413, allocations: 0.9177 MB / 0.9879 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002819/0.2416, allocations: 120.6 kB / 0.988 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2416, allocations: 3.938 kB / 0.988 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.2417, allocations: 55.91 kB / 0.9881 GB, free: 18.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/0.2423, allocations: 62.64 kB / 0.9882 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.2437, allocations: 1.118 MB / 0.9893 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001272/0.2438, allocations: 0.7167 MB / 0.99 GB, free: 16.35 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.627e-05/0.2439, allocations: 17.53 kB / 0.99 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.515e-05/0.2439, allocations: 55.64 kB / 0.99 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.244, allocations: 0 / 0.99 GB, free: 16.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01368/0.2576, allocations: 3.571 MB / 0.9935 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/0.2578, allocations: 201.5 kB / 0.9937 GB, free: 12.65 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.81/2.068, allocations: 0 / 0.9937 GB, free: 12.65 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)