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.47/1.47, allocations: 251.5 MB / 266.7 MB, free: 11.01 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.001145/0.001144, allocations: 185.2 kB / 325.9 MB, free: 2.695 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.846/1.846, allocations: 205 MB / 0.576 GB, free: 21 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.000913/0.0009131, allocations: 97.09 kB / 0.6797 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003324, allocations: 14.06 kB / 0.7932 GB, free: 136.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2287, allocations: 105.4 MB / 0.8962 GB, free: 68.08 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001895/0.2307, allocations: 1.551 MB / 0.8977 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000778/0.2315, allocations: 0.581 MB / 0.8983 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.779e-05/0.2316, allocations: 4 kB / 0.8983 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.2317, allocations: 15.8 kB / 0.8983 GB, free: 65.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.306e-05/0.2318, allocations: 23.8 kB / 0.8983 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.232, allocations: 63.94 kB / 0.8984 GB, free: 65.82 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.2321, allocations: 163.4 kB / 0.8985 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.2323, allocations: 41.66 kB / 0.8986 GB, free: 65.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.743e-05/0.2323, allocations: 47.78 kB / 0.8986 GB, free: 65.57 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.2324, allocations: 55.59 kB / 0.8987 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.2324, allocations: 4 kB / 0.8987 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.501e-05/0.2325, allocations: 4 kB / 0.8987 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.2325, allocations: 19.91 kB / 0.8987 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.069e-05/0.2326, allocations: 55.55 kB / 0.8988 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.2327, allocations: 115.6 kB / 0.8989 GB, free: 65.32 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2327, allocations: 4 kB / 0.8989 GB, free: 65.32 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2327, allocations: 0 / 0.8989 GB, free: 65.32 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.2327, allocations: 0 / 0.8989 GB, free: 65.32 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.0005659/0.2333, allocations: 454.8 kB / 0.8993 GB, free: 64.83 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2333, allocations: 8.031 kB / 0.8993 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.681e-05/0.2334, allocations: 46.73 kB / 0.8994 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.582e-05/0.2334, allocations: 16.75 kB / 0.8994 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000185/0.2336, allocations: 231.9 kB / 0.8996 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.2336, allocations: 12.38 kB / 0.8996 GB, free: 64.47 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.2337, allocations: 12.38 kB / 0.8996 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.2339, allocations: 151.9 kB / 0.8998 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2339, allocations: 7.938 kB / 0.8998 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.2339, allocations: 3.938 kB / 0.8998 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.234, allocations: 4 kB / 0.8998 GB, free: 64.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.2342, allocations: 83.88 kB / 0.8999 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006705/0.2348, allocations: 0.7392 MB / 0.9006 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000127/0.235, allocations: 62.53 kB / 0.9006 GB, free: 63.32 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.268e-05/0.2351, allocations: 40.83 kB / 0.9007 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.2351, allocations: 0 / 0.9007 GB, free: 63.28 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.2353, allocations: 134.7 kB / 0.9008 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 1.153e-06/0.2353, allocations: 0 / 0.9008 GB, free: 63.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0004158/0.2358, allocations: 181.5 kB / 0.901 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.2358, allocations: 140.4 kB / 0.9011 GB, free: 62.77 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.236, allocations: 198.9 kB / 0.9013 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.236, allocations: 37.77 kB / 0.9013 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.905e-05/0.236, allocations: 124.1 kB / 0.9015 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.2361, allocations: 35.45 kB / 0.9015 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.794e-05/0.2361, allocations: 29.7 kB / 0.9015 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.428e-05/0.2362, allocations: 326.8 kB / 0.9018 GB, free: 62 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.2363, allocations: 43.97 kB / 0.9019 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.2364, allocations: 163.9 kB / 0.902 GB, free: 61.75 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.2367, allocations: 206.4 kB / 0.9022 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2367, allocations: 4 kB / 0.9022 GB, free: 61.49 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003498/0.237, allocations: 209.5 kB / 0.9024 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.2371, allocations: 12.06 kB / 0.9025 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.2371, allocations: 4 kB / 0.9025 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2371, allocations: 4 kB / 0.9025 GB, free: 61.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.2372, allocations: 43.91 kB / 0.9025 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.2372, allocations: 7.938 kB / 0.9025 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.2373, allocations: 31.77 kB / 0.9025 GB, free: 61.18 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.2374, allocations: 12 kB / 0.9026 GB, free: 61.16 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 (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 7.718e-05/0.2374, allocations: 145.1 kB / 0.9027 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.2375, allocations: 19.8 kB / 0.9027 GB, free: 61 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.673e-05/0.2375, allocations: 17.41 kB / 0.9027 GB, free: 60.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2375, allocations: 4 kB / 0.9027 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.2375, allocations: 0 / 0.9027 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2375, allocations: 7.984 kB / 0.9027 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005497/0.2381, allocations: 0.521 MB / 0.9032 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2381, allocations: 4 kB / 0.9032 GB, free: 60.38 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.2382, allocations: 23.98 kB / 0.9033 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.2382, allocations: 4 kB / 0.9033 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2382, allocations: 3.984 kB / 0.9033 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2383, allocations: 3.938 kB / 0.9033 GB, free: 60.35 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2383, allocations: 7.938 kB / 0.9033 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000377/0.2386, allocations: 373.8 kB / 0.9036 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.446e-05/0.2387, allocations: 96.86 kB / 0.9037 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.2387, allocations: 4.375 kB / 0.9037 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.2389, allocations: 16.34 kB / 0.9038 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.2389, allocations: 27.84 kB / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.2389, allocations: 8 kB / 0.9038 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.311e-05/0.239, allocations: 140.4 kB / 0.9039 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.239, allocations: 0 / 0.9039 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002797/0.2393, allocations: 28 kB / 0.904 GB, free: 59.62 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.0005452/0.2399, allocations: 0.9084 MB / 0.9048 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002733/0.2401, allocations: 140 kB / 0.905 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2402, allocations: 0 / 0.905 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001181/0.2403, allocations: 52.72 kB / 0.905 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.2408, allocations: 59.95 kB / 0.9051 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.2427, allocations: 2.313 MB / 0.9073 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000157/0.2428, allocations: 0.7245 MB / 0.908 GB, free: 55.17 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.112e-05/0.2429, allocations: 17.53 kB / 0.9081 GB, free: 55.15 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/0.243, allocations: 51.42 kB / 0.9081 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.8e-07/0.243, allocations: 0 / 0.9081 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.2556, allocations: 3.596 MB / 0.9116 GB, free: 51.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/0.2558, allocations: 215.3 kB / 0.9118 GB, free: 51.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/1.928, allocations: 0 / 0.9118 GB, free: 51.41 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)