Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7234/0.7234, allocations: 127.4 MB / 134.9 MB, free: 3.73 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 180.8 kB / 164.7 MB, free: 6.527 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.2 MB / 399.5 MB, free: 5.863 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000793/0.0007931, allocations: 83.89 kB / 476.7 MB, free: 8.602 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.025e-05, allocations: 4 kB / 0.5467 GB, free: 60.4 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1264, allocations: 76.76 MB / 0.6216 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4512/0.5777, allocations: 110.3 MB / 0.7294 GB, free: 5.105 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.5779, allocations: 79.64 kB / 0.7294 GB, free: 5.066 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04655/0.6245, allocations: 17.64 MB / 0.7467 GB, free: 6.465 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6245, allocations: 0 / 0.7467 GB, free: 6.465 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.114e-05/0.6246, allocations: 16 kB / 0.7467 GB, free: 6.449 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001538/0.6261, allocations: 0.9572 MB / 0.7476 GB, free: 5.492 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.6262, allocations: 8.031 kB / 0.7476 GB, free: 5.484 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.6264, allocations: 98.78 kB / 0.7477 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009025/0.6273, allocations: 0.5947 MB / 0.7483 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.6274, allocations: 88.47 kB / 0.7484 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/0.6275, allocations: 32 kB / 0.7484 GB, free: 4.719 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005798/0.6281, allocations: 340.7 kB / 0.7487 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007892/0.6289, allocations: 0.52 MB / 0.7492 GB, free: 4.086 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.6289, allocations: 7.938 kB / 0.7492 GB, free: 4.078 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.712e-05/0.629, allocations: 0 / 0.7492 GB, free: 4.078 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.629, allocations: 12 kB / 0.7493 GB, free: 4.066 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.6317, allocations: 2.13 MB / 0.7513 GB, free: 2.223 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007438/0.6325, allocations: 438.1 kB / 0.7517 GB, free: 1.941 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.6327, allocations: 158.7 kB / 0.7519 GB, free: 1.848 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.6328, allocations: 11.98 kB / 0.7519 GB, free: 1.836 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003927/0.6332, allocations: 228 kB / 0.7521 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=45): time 1.823e-06/0.6332, allocations: 3.938 kB / 0.7521 GB, free: 1.664 MB / 0.4948 GB Notification: Performance of matching and sorting (n=45): time 0.0006501/0.6338, allocations: 397.2 kB / 0.7525 GB, free: 1.371 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/0.6339, allocations: 191.9 kB / 0.7527 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005134/0.6345, allocations: 489.9 kB / 0.7532 GB, free: 0.7656 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.652e-05/0.6345, allocations: 25.7 kB / 0.7532 GB, free: 0.7344 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.6347, allocations: 369.8 kB / 0.7535 GB, free: 0.5039 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.6349, allocations: 148 kB / 0.7537 GB, free: 384 kB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.373e-05/0.6349, allocations: 0 / 0.7537 GB, free: 384 kB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.6351, allocations: 382.6 kB / 0.754 GB, free: 24 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.6353, allocations: 134.8 kB / 0.7542 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.6356, allocations: 272.7 kB / 0.7544 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.6359, allocations: 167.7 kB / 0.7546 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.6359, allocations: 0 / 0.7546 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007129/0.6366, allocations: 487.9 kB / 0.7551 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003898/0.637, allocations: 0.9897 MB / 0.756 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.445e-06/0.637, allocations: 4 kB / 0.756 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.637, allocations: 4 kB / 0.756 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/0.6376, allocations: 126.7 kB / 0.7562 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.6376, allocations: 7.938 kB / 0.7562 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.6381, allocations: 67.58 kB / 0.7562 GB, free: 14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/0.6381, allocations: 21.75 kB / 0.7562 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/0.6382, allocations: 11.95 kB / 0.7563 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005722/0.6387, allocations: 365.1 kB / 0.7566 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.6387, allocations: 3.984 kB / 0.7566 GB, free: 13.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.484e-06/0.6388, allocations: 8 kB / 0.7566 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004103/0.6392, allocations: 101.8 kB / 0.7567 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.6392, allocations: 11.98 kB / 0.7567 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.6396, allocations: 47.58 kB / 0.7568 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.6396, allocations: 15.44 kB / 0.7568 GB, free: 13.55 MB / 0.5105 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.0001418/0.6397, allocations: 125.4 kB / 0.7569 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005502/0.6403, allocations: 388 kB / 0.7573 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.894e-05/0.6404, allocations: 67.16 kB / 0.7573 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001416/0.6406, allocations: 79.31 kB / 0.7574 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.6406, allocations: 7.984 kB / 0.7574 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.6406, allocations: 0 / 0.7574 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.6406, allocations: 0 / 0.7574 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005898/0.6412, allocations: 0.5802 MB / 0.758 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.6412, allocations: 0 / 0.758 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004944/0.6417, allocations: 99.31 kB / 0.7581 GB, free: 12.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.6417, allocations: 7.953 kB / 0.7581 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.904e-05/0.6417, allocations: 0 / 0.7581 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.04e-05/0.6418, allocations: 4 kB / 0.7581 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6418, allocations: 4 kB / 0.7581 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000873/0.6427, allocations: 0.6331 MB / 0.7587 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.6429, allocations: 191.4 kB / 0.7589 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.418e-05/0.643, allocations: 11.08 kB / 0.7589 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004995/0.6435, allocations: 55.94 kB / 0.759 GB, free: 11.75 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.4e-05/0.6436, allocations: 31.45 kB / 0.759 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/0.6436, allocations: 19.92 kB / 0.759 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000378/0.644, allocations: 366.8 kB / 0.7594 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.644, allocations: 0 / 0.7594 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0006175/0.6446, allocations: 223 kB / 0.7596 GB, free: 11.22 MB / 0.5105 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.001192/0.6458, allocations: 1.172 MB / 0.7607 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009061/0.6468, allocations: 0.7024 MB / 0.7614 GB, free: 9.695 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6468, allocations: 0 / 0.7614 GB, free: 9.695 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002573/0.647, allocations: 177.4 kB / 0.7616 GB, free: 9.582 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008673/0.6479, allocations: 188.5 kB / 0.7618 GB, free: 9.441 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.6499, allocations: 0.981 MB / 0.7627 GB, free: 8.523 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.6504, allocations: 0.9423 MB / 0.7636 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0005564/0.6509, allocations: 131.6 kB / 0.7638 GB, free: 7.418 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.6513, allocations: 264.2 kB / 0.764 GB, free: 7.359 MB / 0.5105 GB Notification: Performance of SimCode: time 3.71e-07/0.6513, allocations: 0 / 0.764 GB, free: 7.359 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.6861, allocations: 14.08 MB / 0.7778 GB, free: 9.371 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/0.6863, allocations: 142 kB / 0.7779 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/3.13, allocations: 0 / 0.7779 GB, free: 9.176 MB / 0.5261 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)