Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007528/0.0007528, allocations: 91.06 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007811/0.0007811, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 222.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.569/1.569, allocations: 292.7 MB / 0.5499 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000478/0.0004781, allocations: 13.97 kB / 0.6738 GB, free: 26.1 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2098, allocations: 116.3 MB / 0.7874 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale): time 0.001939/0.2118, allocations: 1.66 MB / 0.789 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.2136, allocations: 1.628 MB / 0.7906 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.2138, allocations: 8 kB / 0.7906 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.214, allocations: 55.39 kB / 0.7907 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000247/0.2142, allocations: 67.48 kB / 0.7908 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006092/0.2148, allocations: 309.5 kB / 0.7911 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.2154, allocations: 0.649 MB / 0.7917 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003228/0.2157, allocations: 246.6 kB / 0.7919 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/0.2159, allocations: 191.1 kB / 0.7921 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.2161, allocations: 222.7 kB / 0.7923 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.2162, allocations: 20 kB / 0.7923 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.62e-05/0.2163, allocations: 35.98 kB / 0.7924 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.977e-05/0.2163, allocations: 79.55 kB / 0.7924 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.852e-05/0.2164, allocations: 121.3 kB / 0.7926 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004778/0.2169, allocations: 0.6625 MB / 0.7932 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2169, allocations: 7.938 kB / 0.7932 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2169, allocations: 0 / 0.7932 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.2169, allocations: 0 / 0.7932 GB, free: 5.848 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001209/0.2182, allocations: 0.8891 MB / 0.7941 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.2182, allocations: 12.03 kB / 0.7941 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.6e-05/0.2183, allocations: 90.52 kB / 0.7942 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.2184, allocations: 75.14 kB / 0.7943 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004854/0.2189, allocations: 429.8 kB / 0.7947 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/0.2189, allocations: 41 kB / 0.7947 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.455e-05/0.219, allocations: 60 kB / 0.7948 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007343/0.2198, allocations: 499 kB / 0.7952 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.2198, allocations: 0 / 0.7952 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.2198, allocations: 24 kB / 0.7953 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.2198, allocations: 8 kB / 0.7953 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005923/0.2204, allocations: 363.8 kB / 0.7956 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.2223, allocations: 1.586 MB / 0.7972 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008255/0.2231, allocations: 0.8916 MB / 0.798 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.2235, allocations: 226 kB / 0.7982 GB, free: 388 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.2235, allocations: 4 kB / 0.7983 GB, free: 384 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004199/0.2239, allocations: 268.9 kB / 0.7985 GB, free: 108 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=47): time 1.914e-06/0.2239, allocations: 0 / 0.7985 GB, free: 108 kB / 0.6075 GB Notification: Performance of matching and sorting (n=47): time 0.0009267/0.2249, allocations: 0.5493 MB / 0.799 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.2249, allocations: 111.2 kB / 0.7991 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.2253, allocations: 409.9 kB / 0.7995 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.2254, allocations: 41.7 kB / 0.7996 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.2256, allocations: 269 kB / 0.7998 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2257, allocations: 149.8 kB / 0.8 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.2257, allocations: 12 kB / 0.8 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.2259, allocations: 362.7 kB / 0.8003 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/0.2263, allocations: 189 kB / 0.8005 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.2267, allocations: 295.3 kB / 0.8008 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.2271, allocations: 272.2 kB / 0.8011 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2271, allocations: 0 / 0.8011 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009664/0.2281, allocations: 0.6353 MB / 0.8017 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.2282, allocations: 207.4 kB / 0.8019 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.2282, allocations: 0 / 0.8019 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2282, allocations: 8 kB / 0.8019 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.2286, allocations: 87.89 kB / 0.802 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.2286, allocations: 4 kB / 0.802 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.2291, allocations: 134.5 kB / 0.8021 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.853e-05/0.2291, allocations: 27.92 kB / 0.8021 GB, free: 12.24 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 8.205e-06/0.2292, allocations: 8 kB / 0.8021 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007454/0.2299, allocations: 0.525 MB / 0.8026 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2299, allocations: 4 kB / 0.8027 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.831e-06/0.2299, allocations: 4 kB / 0.8027 GB, free: 11.69 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.2302, allocations: 75.84 kB / 0.8027 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.2302, allocations: 4 kB / 0.8027 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004279/0.2306, allocations: 123.6 kB / 0.8028 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.2307, allocations: 27.98 kB / 0.8029 GB, free: 11.46 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 2 * 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.0002326/0.2309, allocations: 261.7 kB / 0.8031 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.373e-05/0.231, allocations: 43.44 kB / 0.8032 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.2311, allocations: 53.33 kB / 0.8032 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2311, allocations: 7.984 kB / 0.8032 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2311, allocations: 0 / 0.8032 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.2311, allocations: 7.938 kB / 0.8032 GB, free: 11.08 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.2325, allocations: 1.091 MB / 0.8043 GB, free: 9.938 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2325, allocations: 4 kB / 0.8043 GB, free: 9.934 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003008/0.2328, allocations: 71.91 kB / 0.8044 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.2329, allocations: 11.94 kB / 0.8044 GB, free: 9.852 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.614e-05/0.2329, allocations: 12 kB / 0.8044 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.2329, allocations: 0 / 0.8044 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2329, allocations: 3.938 kB / 0.8044 GB, free: 9.836 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009753/0.2339, allocations: 0.7168 MB / 0.8051 GB, free: 9.102 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.685e-05/0.234, allocations: 128.5 kB / 0.8052 GB, free: 8.957 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.234, allocations: 15.95 kB / 0.8052 GB, free: 8.941 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.2342, allocations: 28.11 kB / 0.8053 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.727e-05/0.2343, allocations: 32.39 kB / 0.8053 GB, free: 8.883 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-05/0.2343, allocations: 19.98 kB / 0.8053 GB, free: 8.863 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002791/0.2346, allocations: 287.1 kB / 0.8056 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2346, allocations: 0 / 0.8056 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005759/0.2352, allocations: 211.3 kB / 0.8058 GB, free: 8.379 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * 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.001245/0.2365, allocations: 1.281 MB / 0.807 GB, free: 7.07 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001233/0.2377, allocations: 0.9501 MB / 0.808 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2377, allocations: 0 / 0.808 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000291/0.238, allocations: 195 kB / 0.8082 GB, free: 5.883 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005582/0.2386, allocations: 101.4 kB / 0.8082 GB, free: 5.781 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004434/0.243, allocations: 3.087 MB / 0.8113 GB, free: 2.621 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.2434, allocations: 0.8593 MB / 0.8121 GB, free: 1.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001968/0.2436, allocations: 51.61 kB / 0.8122 GB, free: 1.676 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.2439, allocations: 203.4 kB / 0.8123 GB, free: 1.477 MB / 0.6231 GB Notification: Performance of SimCode: time 1.452e-06/0.2439, allocations: 3.938 kB / 0.8123 GB, free: 1.473 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.2667, allocations: 10.95 MB / 0.823 GB, free: 6.77 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/0.2669, allocations: 200.7 kB / 0.8232 GB, free: 6.531 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.748/2.015, allocations: 4 kB / 0.8232 GB, free: 6.527 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) Environment - environmentSimulation: