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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.653/2.653, allocations: 287.3 MB / 302.3 MB, free: 8.352 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.001578/0.001577, allocations: 166.5 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.00117/0.00117, allocations: 96.3 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004782/0.0004783, allocations: 10.78 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2261, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004455/0.2306, allocations: 3.139 MB / 0.9813 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00312/0.2338, allocations: 1.252 MB / 0.9826 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006521/0.2345, allocations: 23.88 kB / 0.9826 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.2346, allocations: 51.38 kB / 0.9826 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008441/0.2355, allocations: 199.2 kB / 0.9828 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001629/0.2371, allocations: 462.9 kB / 0.9833 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001334/0.2385, allocations: 0.6022 MB / 0.9839 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000513/0.239, allocations: 255.1 kB / 0.9841 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005306/0.2396, allocations: 298.5 kB / 0.9844 GB, free: 22 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003582/0.2399, allocations: 262.4 kB / 0.9846 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.794e-05/0.24, allocations: 23.94 kB / 0.9847 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.204e-05/0.2401, allocations: 20 kB / 0.9847 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.2403, allocations: 107.5 kB / 0.9848 GB, free: 21.6 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.2404, allocations: 149.1 kB / 0.9849 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000694/0.2411, allocations: 0.6237 MB / 0.9855 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.2411, allocations: 0 / 0.9855 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.164e-06/0.2411, allocations: 0 / 0.9855 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.2412, allocations: 0 / 0.9855 GB, free: 20.82 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.002574/0.2438, allocations: 1.071 MB / 0.9866 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.2438, allocations: 12.02 kB / 0.9866 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001484/0.244, allocations: 90.52 kB / 0.9867 GB, free: 19.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.2442, allocations: 98.83 kB / 0.9868 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.2454, allocations: 0.5784 MB / 0.9873 GB, free: 18.87 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.2456, allocations: 96.39 kB / 0.9874 GB, free: 18.76 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.2457, allocations: 52 kB / 0.9875 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.2473, allocations: 0.6041 MB / 0.9881 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.2473, allocations: 0 / 0.9881 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.07e-05/0.2474, allocations: 24 kB / 0.9881 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.2474, allocations: 12 kB / 0.9881 GB, free: 18.03 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.249, allocations: 439.7 kB / 0.9885 GB, free: 17.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003794/0.2528, allocations: 2.137 MB / 0.9906 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.2548, allocations: 0.5232 MB / 0.9911 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.2549, allocations: 19.97 kB / 0.9911 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/0.2559, allocations: 286.9 kB / 0.9914 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=45): time 3.376e-06/0.2559, allocations: 0 / 0.9914 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of matching and sorting (n=45): time 0.002309/0.2583, allocations: 0.6333 MB / 0.992 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.2583, allocations: 89.12 kB / 0.9921 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009081/0.2593, allocations: 0.6139 MB / 0.9927 GB, free: 13.17 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.036e-05/0.2594, allocations: 33.7 kB / 0.9927 GB, free: 13.13 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.2597, allocations: 368.8 kB / 0.9931 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.2598, allocations: 157.7 kB / 0.9933 GB, free: 12.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.964e-05/0.2599, allocations: 8 kB / 0.9933 GB, free: 12.6 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.028e-05/0.26, allocations: 333.9 kB / 0.9936 GB, free: 12.27 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007081/0.2607, allocations: 181 kB / 0.9937 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007664/0.2615, allocations: 280.2 kB / 0.994 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007605/0.2622, allocations: 238.4 kB / 0.9942 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2623, allocations: 4 kB / 0.9942 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001872/0.2641, allocations: 0.6061 MB / 0.9948 GB, free: 10.92 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002335/0.2644, allocations: 0.9908 MB / 0.9958 GB, free: 9.848 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.2644, allocations: 4 kB / 0.9958 GB, free: 9.844 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.2644, allocations: 4 kB / 0.9958 GB, free: 9.84 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008714/0.2653, allocations: 123.8 kB / 0.9959 GB, free: 9.719 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.2654, allocations: 7.938 kB / 0.9959 GB, free: 9.711 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006788/0.266, allocations: 67.41 kB / 0.996 GB, free: 9.645 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.2661, allocations: 23.98 kB / 0.996 GB, free: 9.621 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.2661, allocations: 8 kB / 0.996 GB, free: 9.613 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001527/0.2677, allocations: 0.4998 MB / 0.9965 GB, free: 9.109 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.2677, allocations: 4 kB / 0.9965 GB, free: 9.105 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.2677, allocations: 4 kB / 0.9965 GB, free: 9.102 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007906/0.2685, allocations: 107.8 kB / 0.9966 GB, free: 8.996 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.2685, allocations: 8 kB / 0.9966 GB, free: 8.988 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006391/0.2692, allocations: 63.72 kB / 0.9967 GB, free: 8.926 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.815e-05/0.2692, allocations: 16 kB / 0.9967 GB, free: 8.91 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.0004133/0.2697, allocations: 275.1 kB / 0.997 GB, free: 8.633 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.2698, allocations: 75.11 kB / 0.9971 GB, free: 8.559 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.27, allocations: 79.33 kB / 0.9971 GB, free: 8.473 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.27, allocations: 8 kB / 0.9971 GB, free: 8.465 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.27, allocations: 0 / 0.9971 GB, free: 8.465 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.2701, allocations: 0 / 0.9971 GB, free: 8.465 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000858/0.2709, allocations: 0.6297 MB / 0.9978 GB, free: 7.785 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.271, allocations: 0 / 0.9978 GB, free: 7.785 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008788/0.2718, allocations: 87.89 kB / 0.9978 GB, free: 7.699 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.2719, allocations: 3.938 kB / 0.9978 GB, free: 7.695 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.2719, allocations: 15.94 kB / 0.9979 GB, free: 7.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.2719, allocations: 0 / 0.9979 GB, free: 7.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2719, allocations: 0 / 0.9979 GB, free: 7.68 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.2744, allocations: 0.7487 MB / 0.9986 GB, free: 6.914 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003188/0.2747, allocations: 192.1 kB / 0.9988 GB, free: 6.707 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.2748, allocations: 12 kB / 0.9988 GB, free: 6.695 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000718/0.2756, allocations: 47.91 kB / 0.9988 GB, free: 6.648 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.2757, allocations: 31.95 kB / 0.9989 GB, free: 6.617 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-05/0.2758, allocations: 15.98 kB / 0.9989 GB, free: 6.602 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006683/0.2765, allocations: 431 kB / 0.9993 GB, free: 6.188 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.01e-07/0.2765, allocations: 0 / 0.9993 GB, free: 6.188 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0008685/0.2774, allocations: 219.2 kB / 0.9995 GB, free: 5.973 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.002611/0.28, allocations: 1.308 MB / 1.001 GB, free: 4.625 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002455/0.2825, allocations: 0.8087 MB / 1.002 GB, free: 3.797 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.2825, allocations: 0 / 1.002 GB, free: 3.797 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0007571/0.2833, allocations: 223.8 kB / 1.002 GB, free: 3.578 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.2846, allocations: 176.8 kB / 1.002 GB, free: 3.406 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.2884, allocations: 3.303 MB / 1.005 GB, free: 12 kB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006612/0.2891, allocations: 0.9339 MB / 1.006 GB, free: 15.05 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0007207/0.2899, allocations: 93.33 kB / 1.006 GB, free: 14.96 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005855/0.2905, allocations: 259.3 kB / 1.006 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of SimCode: time 1.263e-06/0.2905, allocations: 3.938 kB / 1.006 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05791/0.3484, allocations: 12.88 MB / 1.019 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003353/0.3488, allocations: 188.4 kB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.939/3.288, allocations: 0 / 1.019 GB, free: 1.777 MB / 0.6355 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_8.0.0_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)