Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.314/2.314, allocations: 387.1 MB / 399.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 179.1 kB / 492.3 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.3 MB / 0.7871 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 94.7 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.641e-05, allocations: 8 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.254, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9711/1.225, allocations: 157.2 MB / 1.366 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/1.225, allocations: 77.92 kB / 1.366 GB, free: 19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04407/1.27, allocations: 16.91 MB / 1.383 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.352e-06/1.27, allocations: 0 / 1.383 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0001196/1.27, allocations: 19.09 kB / 1.383 GB, free: 31.88 MB / 0.8386 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.001874/1.272, allocations: 0.939 MB / 1.383 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/1.272, allocations: 11.62 kB / 1.384 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/1.272, allocations: 90.02 kB / 1.384 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/1.272, allocations: 97.3 kB / 1.384 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/1.273, allocations: 0.5883 MB / 1.384 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/1.273, allocations: 99.64 kB / 1.384 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.146e-05/1.273, allocations: 52.53 kB / 1.384 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008665/1.274, allocations: 0.5795 MB / 1.385 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/1.274, allocations: 3.953 kB / 1.385 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-05/1.274, allocations: 23.5 kB / 1.385 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/1.274, allocations: 11.53 kB / 1.385 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006338/1.275, allocations: 382 kB / 1.385 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002878/1.278, allocations: 2.207 MB / 1.388 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008154/1.279, allocations: 459.1 kB / 1.388 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002652/1.279, allocations: 176.3 kB / 1.388 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.821e-05/1.279, allocations: 3.781 kB / 1.388 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004325/1.28, allocations: 253.6 kB / 1.388 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 3.617e-06/1.28, allocations: 0 / 1.388 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0007664/1.28, allocations: 415.8 kB / 1.389 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.837e-05/1.28, allocations: 191.4 kB / 1.389 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006052/1.281, allocations: 0.5352 MB / 1.389 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.787e-05/1.281, allocations: 36.83 kB / 1.39 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/1.281, allocations: 363.3 kB / 1.39 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/1.281, allocations: 151.8 kB / 1.39 GB, free: 28 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-05/1.281, allocations: 12.75 kB / 1.39 GB, free: 28 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001074/1.282, allocations: 323.6 kB / 1.39 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/1.282, allocations: 152.1 kB / 1.39 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000296/1.282, allocations: 276.3 kB / 1.391 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/1.282, allocations: 203.6 kB / 1.391 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/1.282, allocations: 4 kB / 1.391 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009068/1.283, allocations: 0.5402 MB / 1.391 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004/1.284, allocations: 0.988 MB / 1.392 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/1.284, allocations: 3.844 kB / 1.392 GB, free: 26.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/1.284, allocations: 15.59 kB / 1.392 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005192/1.284, allocations: 115.9 kB / 1.393 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/1.284, allocations: 11.67 kB / 1.393 GB, free: 26.25 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005286/1.285, allocations: 80.91 kB / 1.393 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/1.285, allocations: 19 kB / 1.393 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.285, allocations: 8.734 kB / 1.393 GB, free: 26.21 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000671/1.286, allocations: 467.9 kB / 1.393 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/1.286, allocations: 3.781 kB / 1.393 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.223e-06/1.286, allocations: 3.875 kB / 1.393 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/1.286, allocations: 116.3 kB / 1.393 GB, free: 26.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/1.286, allocations: 3.812 kB / 1.393 GB, free: 26.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004744/1.287, allocations: 76.88 kB / 1.393 GB, free: 26.07 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/1.287, allocations: 26.48 kB / 1.393 GB, free: 26.06 MB / 0.8386 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 () * 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.00021/1.287, allocations: 135.8 kB / 1.393 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/1.287, allocations: 77.61 kB / 1.394 GB, free: 25.9 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002014/1.287, allocations: 77.47 kB / 1.394 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/1.287, allocations: 7.688 kB / 1.394 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/1.287, allocations: 4 kB / 1.394 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/1.287, allocations: 3.984 kB / 1.394 GB, free: 25.87 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007242/1.288, allocations: 0.6488 MB / 1.394 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/1.288, allocations: 0 / 1.394 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004728/1.289, allocations: 94.91 kB / 1.394 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.964e-06/1.289, allocations: 3.938 kB / 1.394 GB, free: 25.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.932e-05/1.289, allocations: 11.36 kB / 1.394 GB, free: 25.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/1.289, allocations: 7.844 kB / 1.394 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.289, allocations: 0 / 1.394 GB, free: 25.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009016/1.289, allocations: 0.6613 MB / 1.395 GB, free: 25.34 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/1.29, allocations: 199.8 kB / 1.395 GB, free: 25.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.762e-05/1.29, allocations: 10.38 kB / 1.395 GB, free: 25.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005126/1.29, allocations: 71.52 kB / 1.395 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.764e-05/1.29, allocations: 34.33 kB / 1.395 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/1.291, allocations: 14.73 kB / 1.395 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004603/1.291, allocations: 426.8 kB / 1.396 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.291, allocations: 0 / 1.396 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006213/1.292, allocations: 240.1 kB / 1.396 GB, free: 24.97 MB / 0.8386 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) * 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.001151/1.293, allocations: 1.212 MB / 1.397 GB, free: 24.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009796/1.294, allocations: 0.7464 MB / 1.398 GB, free: 24.11 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/1.294, allocations: 7.469 kB / 1.398 GB, free: 24.11 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002477/1.294, allocations: 186.2 kB / 1.398 GB, free: 24.1 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007975/1.295, allocations: 187.4 kB / 1.398 GB, free: 24.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/1.297, allocations: 1.01 MB / 1.399 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/1.297, allocations: 0.9373 MB / 1.4 GB, free: 22.75 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006059/1.298, allocations: 129.3 kB / 1.4 GB, free: 22.69 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/1.298, allocations: 258.2 kB / 1.401 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of SimCode: time 4.8e-07/1.298, allocations: 0 / 1.401 GB, free: 22.66 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/1.334, allocations: 14.99 MB / 1.415 GB, free: 8.766 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/1.334, allocations: 145.6 kB / 1.415 GB, free: 8.543 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/3.777, allocations: 0 / 1.415 GB, free: 8.543 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat does not exist to compare? outputFormat=mat