Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.73/1.73, allocations: 287.5 MB / 302.6 MB, free: 8.223 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.00133/0.00133, allocations: 181.1 kB / 371.2 MB, free: 10.85 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.635/1.635, allocations: 205.4 MB / 0.6298 GB, free: 10.57 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.0007378/0.0007379, allocations: 100.8 kB / 0.7432 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003697, allocations: 18.89 kB / 0.8661 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2169, allocations: 115.3 MB / 0.9787 GB, free: 28.22 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.002923/0.2199, allocations: 3.15 MB / 0.9817 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001849/0.2218, allocations: 1.306 MB / 0.983 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003326/0.2221, allocations: 31.81 kB / 0.983 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.2224, allocations: 87.11 kB / 0.9831 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000395/0.2228, allocations: 131 kB / 0.9833 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008903/0.2237, allocations: 458.2 kB / 0.9837 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006398/0.2243, allocations: 0.8432 MB / 0.9845 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004102/0.2247, allocations: 333.9 kB / 0.9848 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002625/0.225, allocations: 270.5 kB / 0.9851 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.2252, allocations: 258.3 kB / 0.9853 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.803e-05/0.2253, allocations: 20 kB / 0.9854 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.217e-05/0.2254, allocations: 24 kB / 0.9854 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.3e-05/0.2255, allocations: 107.4 kB / 0.9855 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.212e-05/0.2256, allocations: 145.2 kB / 0.9856 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.226, allocations: 0.6234 MB / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.226, allocations: 0 / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.744e-06/0.226, allocations: 0 / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.226, allocations: 0 / 0.9862 GB, free: 20.43 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001546/0.2275, allocations: 1.059 MB / 0.9873 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.2276, allocations: 12.03 kB / 0.9873 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.2277, allocations: 91.81 kB / 0.9874 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007484/0.2285, allocations: 0.6064 MB / 0.988 GB, free: 18.56 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.359e-05/0.2286, allocations: 109 kB / 0.9881 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.2286, allocations: 52.38 kB / 0.9881 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009235/0.2296, allocations: 0.6081 MB / 0.9887 GB, free: 17.74 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2296, allocations: 4 kB / 0.9887 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.579e-05/0.2297, allocations: 24 kB / 0.9887 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.2297, allocations: 12 kB / 0.9887 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008721/0.2306, allocations: 439.6 kB / 0.9892 GB, free: 17.27 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.2328, allocations: 2.129 MB / 0.9912 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.2339, allocations: 0.5186 MB / 0.9917 GB, free: 14.53 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004134/0.2343, allocations: 234.4 kB / 0.992 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.2344, allocations: 4 kB / 0.992 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005869/0.2349, allocations: 297.9 kB / 0.9923 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=45): time 2.565e-06/0.235, allocations: 0 / 0.9923 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45): time 0.001251/0.2362, allocations: 0.6308 MB / 0.9929 GB, free: 13.36 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.2363, allocations: 92.86 kB / 0.993 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005283/0.2368, allocations: 0.6138 MB / 0.9936 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.2368, allocations: 37.7 kB / 0.9936 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.237, allocations: 364.8 kB / 0.9939 GB, free: 12.22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.287e-05/0.2371, allocations: 153.8 kB / 0.9941 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.111e-05/0.2371, allocations: 12 kB / 0.9941 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.645e-05/0.2372, allocations: 326 kB / 0.9944 GB, free: 11.73 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000382/0.2376, allocations: 185 kB / 0.9946 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.238, allocations: 284.2 kB / 0.9949 GB, free: 11.25 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007735/0.2388, allocations: 486 kB / 0.9953 GB, free: 10.73 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.2388, allocations: 11.92 kB / 0.9953 GB, free: 10.72 MB / 0.6198 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009814/0.2398, allocations: 0.61 MB / 0.9959 GB, free: 10.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.677e-05/0.2399, allocations: 189.3 kB / 0.9961 GB, free: 9.867 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2399, allocations: 4 kB / 0.9961 GB, free: 9.863 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.2399, allocations: 13.03 kB / 0.9961 GB, free: 9.852 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004439/0.2404, allocations: 107.9 kB / 0.9962 GB, free: 9.746 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.2404, allocations: 7.938 kB / 0.9962 GB, free: 9.738 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.2408, allocations: 71.41 kB / 0.9963 GB, free: 9.668 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.2408, allocations: 20 kB / 0.9963 GB, free: 9.648 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.66e-06/0.2408, allocations: 7.938 kB / 0.9963 GB, free: 9.641 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008335/0.2417, allocations: 0.5038 MB / 0.9968 GB, free: 9.129 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.2417, allocations: 4 kB / 0.9968 GB, free: 9.125 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.07e-06/0.2417, allocations: 7.984 kB / 0.9968 GB, free: 9.117 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/0.2421, allocations: 103.9 kB / 0.9969 GB, free: 9.016 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2421, allocations: 15.86 kB / 0.9969 GB, free: 9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.2424, allocations: 59.77 kB / 0.997 GB, free: 8.941 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.2425, allocations: 20 kB / 0.997 GB, free: 8.922 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002241/0.2427, allocations: 274.3 kB / 0.9973 GB, free: 8.645 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.844e-05/0.2428, allocations: 75.09 kB / 0.9974 GB, free: 8.57 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.2429, allocations: 83.33 kB / 0.9974 GB, free: 8.48 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2429, allocations: 4 kB / 0.9974 GB, free: 8.477 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2429, allocations: 4 kB / 0.9974 GB, free: 8.473 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2429, allocations: 3.984 kB / 0.9975 GB, free: 8.469 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004923/0.2434, allocations: 0.6219 MB / 0.9981 GB, free: 7.797 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2434, allocations: 3.938 kB / 0.9981 GB, free: 7.793 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004277/0.2439, allocations: 87.88 kB / 0.9981 GB, free: 7.707 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2439, allocations: 0 / 0.9981 GB, free: 7.707 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.2439, allocations: 12 kB / 0.9982 GB, free: 7.695 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2439, allocations: 0 / 0.9982 GB, free: 7.695 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2439, allocations: 8 kB / 0.9982 GB, free: 7.688 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.2452, allocations: 0.7396 MB / 0.9989 GB, free: 6.93 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.2454, allocations: 196 kB / 0.9991 GB, free: 6.719 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.918e-05/0.2455, allocations: 16 kB / 0.9991 GB, free: 6.703 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.2458, allocations: 43.89 kB / 0.9991 GB, free: 6.66 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.2459, allocations: 35.89 kB / 0.9992 GB, free: 6.625 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.246, allocations: 19.98 kB / 0.9992 GB, free: 6.605 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003721/0.2464, allocations: 431 kB / 0.9996 GB, free: 6.191 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2464, allocations: 0 / 0.9996 GB, free: 6.191 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004886/0.2469, allocations: 219.2 kB / 0.9998 GB, free: 5.977 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001106/0.247, allocations: 111.2 kB / 0.9999 GB, free: 5.859 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001286/0.2483, allocations: 0.8085 MB / 1.001 GB, free: 5.027 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2483, allocations: 0 / 1.001 GB, free: 5.027 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003966/0.2487, allocations: 228.1 kB / 1.001 GB, free: 4.805 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007875/0.2495, allocations: 188.4 kB / 1.001 GB, free: 4.625 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001659/0.2511, allocations: 1.384 MB / 1.002 GB, free: 3.207 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.2514, allocations: 0.9222 MB / 1.003 GB, free: 2.254 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003729/0.2518, allocations: 89.19 kB / 1.003 GB, free: 2.168 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.2519, allocations: 51.38 kB / 1.003 GB, free: 2.117 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2519, allocations: 4 kB / 1.003 GB, free: 2.113 MB / 0.6198 GB Notification: Performance of Templates: time 0.01186/0.2638, allocations: 6.91 MB / 1.01 GB, free: 11.27 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)