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.001472/0.001472, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 189.4 kB / 16.67 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9321/0.9321, allocations: 135.6 MB / 426.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 68.03 kB / 0.5857 GB, free: 3.266 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3783, allocations: 81.03 MB / 0.6648 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.003652/0.382, allocations: 3.692 MB / 0.6684 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.3838, allocations: 1.329 MB / 0.6697 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002843/0.3841, allocations: 24.78 kB / 0.6698 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002385/0.3844, allocations: 127.5 kB / 0.6699 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000385/0.3848, allocations: 179.6 kB / 0.6701 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008382/0.3856, allocations: 0.5653 MB / 0.6706 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006913/0.3863, allocations: 0.9681 MB / 0.6716 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004152/0.3868, allocations: 358.5 kB / 0.6719 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.3871, allocations: 362.8 kB / 0.6722 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002612/0.3873, allocations: 344.4 kB / 0.6726 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.3875, allocations: 78.09 kB / 0.6726 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.3876, allocations: 78.47 kB / 0.6727 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.3877, allocations: 185.9 kB / 0.6729 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002142/0.3879, allocations: 384 kB / 0.6733 GB, free: 492 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007245/0.3886, allocations: 0.9035 MB / 0.6741 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.3886, allocations: 1.188 kB / 0.6741 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.52e-07/0.3886, allocations: 0 / 0.6741 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.3887, allocations: 0 / 0.6741 GB, free: 15.77 MB / 0.5137 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.002023/0.3907, allocations: 1.211 MB / 0.6753 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3907, allocations: 11.03 kB / 0.6753 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.3909, allocations: 94.67 kB / 0.6754 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.391, allocations: 101.3 kB / 0.6755 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009988/0.392, allocations: 0.6152 MB / 0.6761 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.3922, allocations: 98.98 kB / 0.6762 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.448e-05/0.3922, allocations: 51.91 kB / 0.6763 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.3933, allocations: 0.6077 MB / 0.6769 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.3934, allocations: 0 / 0.6769 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/0.3934, allocations: 21.38 kB / 0.6769 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.3934, allocations: 12.72 kB / 0.6769 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009659/0.3944, allocations: 427.3 kB / 0.6773 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002862/0.3973, allocations: 2.105 MB / 0.6794 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3985, allocations: 0.4991 MB / 0.6798 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004873/0.399, allocations: 219 kB / 0.6801 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.05e-05/0.3991, allocations: 9.078 kB / 0.6801 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006617/0.3998, allocations: 279.9 kB / 0.6803 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.3998, allocations: 0 / 0.6803 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of matching and sorting (n=45): time 0.001539/0.4013, allocations: 0.6112 MB / 0.6809 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.4014, allocations: 90.62 kB / 0.681 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007384/0.4022, allocations: 0.6141 MB / 0.6816 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.734e-05/0.4022, allocations: 37.7 kB / 0.6816 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.4025, allocations: 358 kB / 0.682 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000138/0.4027, allocations: 161 kB / 0.6821 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.4029, allocations: 95.55 kB / 0.6822 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.403, allocations: 330.7 kB / 0.6825 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/0.4035, allocations: 189 kB / 0.6827 GB, free: 9.344 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005095/0.404, allocations: 276.6 kB / 0.683 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009557/0.405, allocations: 482.7 kB / 0.6835 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.405, allocations: 0 / 0.6835 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001195/0.4062, allocations: 0.5974 MB / 0.684 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.4062, allocations: 32.58 kB / 0.6841 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.4062, allocations: 3.531 kB / 0.6841 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.4063, allocations: 5.406 kB / 0.6841 GB, free: 8.473 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000453/0.4067, allocations: 112.6 kB / 0.6842 GB, free: 8.441 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.4067, allocations: 9.141 kB / 0.6842 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.4072, allocations: 69.55 kB / 0.6843 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.4072, allocations: 21.7 kB / 0.6843 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005584/0.4078, allocations: 307.4 kB / 0.6846 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004659/0.4082, allocations: 272.9 kB / 0.6848 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008422/0.4091, allocations: 453.5 kB / 0.6853 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.943e-06/0.4091, allocations: 5.125 kB / 0.6853 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001084/0.4102, allocations: 0.5812 MB / 0.6858 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.4102, allocations: 40.31 kB / 0.6859 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.4103, allocations: 2.344 kB / 0.6859 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.016e-06/0.4103, allocations: 4.438 kB / 0.6859 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000414/0.4107, allocations: 102 kB / 0.686 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.4107, allocations: 5.031 kB / 0.686 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003714/0.4111, allocations: 52.92 kB / 0.686 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.4111, allocations: 22.97 kB / 0.6861 GB, free: 7.25 MB / 0.5137 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001985/0.4113, allocations: 213.4 kB / 0.6863 GB, free: 7.043 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.655e-05/0.4114, allocations: 72.97 kB / 0.6863 GB, free: 7.004 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.4116, allocations: 82.23 kB / 0.6864 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.4116, allocations: 8.547 kB / 0.6864 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.4116, allocations: 5.062 kB / 0.6864 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.4116, allocations: 3.984 kB / 0.6864 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007097/0.4123, allocations: 0.6228 MB / 0.687 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4124, allocations: 0 / 0.687 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/0.4128, allocations: 85.7 kB / 0.6871 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.4128, allocations: 1.062 kB / 0.6871 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.4128, allocations: 11.45 kB / 0.6871 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4128, allocations: 1.719 kB / 0.6871 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4128, allocations: 1.125 kB / 0.6871 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.4143, allocations: 0.7341 MB / 0.6878 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/0.4146, allocations: 199.8 kB / 0.688 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.313e-05/0.4147, allocations: 11.53 kB / 0.688 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/0.4151, allocations: 32.95 kB / 0.6881 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.4151, allocations: 31.53 kB / 0.6881 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.4152, allocations: 18.67 kB / 0.6881 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004741/0.4157, allocations: 433.6 kB / 0.6885 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4157, allocations: 0 / 0.6885 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005741/0.4163, allocations: 214.3 kB / 0.6887 GB, free: 5.438 MB / 0.5137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00182/0.4181, allocations: 1.285 MB / 0.69 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001546/0.4196, allocations: 0.7887 MB / 0.6908 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.4197, allocations: 4.188 kB / 0.6908 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004671/0.4201, allocations: 225.8 kB / 0.691 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008668/0.421, allocations: 207.4 kB / 0.6912 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008025/0.429, allocations: 5.374 MB / 0.6964 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.4296, allocations: 0.9217 MB / 0.6973 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004047/0.43, allocations: 93.11 kB / 0.6974 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.4304, allocations: 255.3 kB / 0.6977 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of SimCode: time 5.81e-07/0.4304, allocations: 0 / 0.6977 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3224/0.7528, allocations: 14.05 MB / 0.7114 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.889/9.642, allocations: 0 / 0.7114 GB, free: 0.7148 MB / 0.5294 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/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)