Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID",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.0008028/0.000803, allocations: 91.84 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.0008355/0.0008354, 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 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.031/1.031, allocations: 135.3 MB / 426.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003805/0.0003807, allocations: 8.625 kB / 0.5071 GB, free: 5.016 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2312, allocations: 82.31 MB / 0.5875 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.004185/0.2355, allocations: 3.115 MB / 0.5905 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002882/0.2384, allocations: 1.259 MB / 0.5917 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004571/0.2389, allocations: 23.88 kB / 0.5917 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003121/0.2392, allocations: 87.09 kB / 0.5918 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004992/0.2397, allocations: 139 kB / 0.592 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.2409, allocations: 459.8 kB / 0.5924 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009638/0.2418, allocations: 0.8238 MB / 0.5932 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.2423, allocations: 255.1 kB / 0.5935 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003938/0.2427, allocations: 270.5 kB / 0.5937 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.2431, allocations: 254.3 kB / 0.594 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.992e-05/0.2431, allocations: 24 kB / 0.594 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.02e-05/0.2432, allocations: 20 kB / 0.594 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.2434, allocations: 119.4 kB / 0.5941 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.2435, allocations: 137.3 kB / 0.5942 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006201/0.2441, allocations: 0.6237 MB / 0.5948 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.2441, allocations: 0 / 0.5948 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.647e-06/0.2441, allocations: 3.938 kB / 0.5949 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.728e-06/0.2442, allocations: 3.938 kB / 0.5949 GB, free: 11.25 MB / 0.4981 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.001982/0.2462, allocations: 1.067 MB / 0.5959 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.2462, allocations: 8.031 kB / 0.5959 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/0.2464, allocations: 90.52 kB / 0.596 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.2465, allocations: 94.88 kB / 0.5961 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.2476, allocations: 0.5707 MB / 0.5966 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.2477, allocations: 100.4 kB / 0.5967 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-05/0.2478, allocations: 55.91 kB / 0.5968 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.249, allocations: 0.608 MB / 0.5974 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.249, allocations: 0 / 0.5974 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/0.2491, allocations: 23.98 kB / 0.5974 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.2491, allocations: 15.94 kB / 0.5974 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009972/0.2501, allocations: 443.7 kB / 0.5978 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003265/0.2534, allocations: 2.126 MB / 0.5999 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.2547, allocations: 0.5193 MB / 0.6004 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.2551, allocations: 230.5 kB / 0.6006 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-05/0.2552, allocations: 8 kB / 0.6007 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007442/0.256, allocations: 286.2 kB / 0.6009 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 3.346e-06/0.256, allocations: 0 / 0.6009 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001474/0.2574, allocations: 0.6434 MB / 0.6016 GB, free: 4.117 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/0.2575, allocations: 92.84 kB / 0.6016 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007955/0.2583, allocations: 0.6021 MB / 0.6022 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.96e-05/0.2584, allocations: 37.7 kB / 0.6023 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003398/0.2587, allocations: 356.7 kB / 0.6026 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.2589, allocations: 161.8 kB / 0.6028 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.259, allocations: 8 kB / 0.6028 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.2591, allocations: 333.9 kB / 0.6031 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/0.2596, allocations: 177 kB / 0.6033 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005081/0.2601, allocations: 292.2 kB / 0.6035 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004864/0.2606, allocations: 234.4 kB / 0.6038 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2606, allocations: 0 / 0.6038 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001168/0.2618, allocations: 0.6178 MB / 0.6044 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001858/0.262, allocations: 185.2 kB / 0.6045 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.262, allocations: 0 / 0.6045 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.262, allocations: 8 kB / 0.6045 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.2625, allocations: 119.8 kB / 0.6047 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.2625, allocations: 7.984 kB / 0.6047 GB, free: 0.7852 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.2629, allocations: 63.52 kB / 0.6047 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.464e-05/0.2629, allocations: 27.88 kB / 0.6048 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.969e-06/0.2629, allocations: 4 kB / 0.6048 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009778/0.2639, allocations: 0.4998 MB / 0.6052 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.2639, allocations: 320 / 0.6052 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.264, allocations: 12 kB / 0.6053 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.2644, allocations: 107.8 kB / 0.6054 GB, free: 68 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.2644, allocations: 4 kB / 0.6054 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.2647, allocations: 59.5 kB / 0.6054 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.4622/0.7269, allocations: 18.45 kB / 0.6054 GB, free: 48.39 MB / 0.4981 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.0005418/0.7275, allocations: 270.7 kB / 0.6057 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002228/0.7277, allocations: 74.36 kB / 0.6058 GB, free: 48.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/0.7279, allocations: 82.67 kB / 0.6058 GB, free: 48.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.255e-05/0.7279, allocations: 5.125 kB / 0.6059 GB, free: 48.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.728, allocations: 0 / 0.6059 GB, free: 48.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.728, allocations: 2.016 kB / 0.6059 GB, free: 48.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007578/0.7287, allocations: 0.6277 MB / 0.6065 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.7288, allocations: 0 / 0.6065 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004784/0.7292, allocations: 91.94 kB / 0.6066 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.7293, allocations: 1.719 kB / 0.6066 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.287e-05/0.7293, allocations: 13.66 kB / 0.6066 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.7293, allocations: 2.875 kB / 0.6066 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.7293, allocations: 0 / 0.6066 GB, free: 48.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.7307, allocations: 0.7504 MB / 0.6073 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/0.7309, allocations: 190.2 kB / 0.6075 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.399e-05/0.731, allocations: 16.11 kB / 0.6075 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003431/0.7313, allocations: 44.48 kB / 0.6075 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.446e-05/0.7314, allocations: 31.81 kB / 0.6076 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.7315, allocations: 18.09 kB / 0.6076 GB, free: 47.84 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004532/0.7319, allocations: 422.8 kB / 0.608 GB, free: 47.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.732, allocations: 3.562 kB / 0.608 GB, free: 47.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006588/0.7326, allocations: 218.5 kB / 0.6082 GB, free: 47.73 MB / 0.4981 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.001557/0.7342, allocations: 1.306 MB / 0.6095 GB, free: 47.09 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001415/0.7356, allocations: 0.8048 MB / 0.6103 GB, free: 46.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7356, allocations: 0 / 0.6103 GB, free: 46.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004667/0.7361, allocations: 230.3 kB / 0.6105 GB, free: 46.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008659/0.737, allocations: 179.1 kB / 0.6107 GB, free: 46.95 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006205/0.7432, allocations: 4.002 MB / 0.6146 GB, free: 45.58 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.7436, allocations: 0.9163 MB / 0.6155 GB, free: 44.87 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004622/0.7441, allocations: 95.25 kB / 0.6156 GB, free: 44.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003384/0.7444, allocations: 252.2 kB / 0.6158 GB, free: 44.86 MB / 0.4981 GB Notification: Performance of SimCode: time 2.054e-06/0.7444, allocations: 0 / 0.6158 GB, free: 44.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.7721, allocations: 13.22 MB / 0.6287 GB, free: 44.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.7723, allocations: 172.6 kB / 0.6289 GB, free: 43.78 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.369/3.141, allocations: 0 / 0.6289 GB, free: 43.78 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1) Environment - environmentSimulation: