Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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(IndustrialControlSystems.Controllers.Examples.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias",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.001246/0.001246, allocations: 104 kB / 15.6 MB, free: 148 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.001236/0.001236, allocations: 192.1 kB / 16.53 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05935/0.05935, allocations: 10.74 MB / 280.5 MB, free: 10.44 MB / 238.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.001422/0.001422, allocations: 75.88 kB / 340.6 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08337, allocations: 49.02 MB / 389.7 MB, free: 6.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.004219/0.08763, allocations: 2.116 MB / 391.8 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.08906, allocations: 0.5375 MB / 392.3 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002645/0.08935, allocations: 11.94 kB / 392.3 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.08961, allocations: 55.39 kB / 392.4 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.08979, allocations: 31.62 kB / 392.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007411/0.09054, allocations: 255.5 kB / 392.7 MB, free: 3.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006521/0.0912, allocations: 0.5115 MB / 393.2 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.09142, allocations: 76.94 kB / 393.2 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.09175, allocations: 167.4 kB / 393.4 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.09213, allocations: 191.1 kB / 393.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.383e-05/0.09223, allocations: 32 kB / 393.6 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.801e-05/0.09231, allocations: 28 kB / 393.7 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.09249, allocations: 123.7 kB / 393.8 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002172/0.09272, allocations: 182.8 kB / 394 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004664/0.09319, allocations: 358.7 kB / 394.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.09321, allocations: 0 / 394.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.09322, allocations: 0 / 394.3 MB, free: 1.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.09324, allocations: 0 / 394.3 MB, free: 1.465 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001482/0.09473, allocations: 0.7211 MB / 395 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.0948, allocations: 11.89 kB / 395 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.09492, allocations: 70.72 kB / 395.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.09503, allocations: 48.38 kB / 395.2 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005174/0.09556, allocations: 375.6 kB / 395.5 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.498e-05/0.09561, allocations: 25.38 kB / 395.5 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.815e-05/0.09568, allocations: 40.38 kB / 395.6 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007005/0.09639, allocations: 416.6 kB / 396 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.09643, allocations: 11.84 kB / 396 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/0.09648, allocations: 23.98 kB / 396 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.0965, allocations: 8 kB / 396 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000569/0.09707, allocations: 314.3 kB / 396.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/0.09943, allocations: 1.532 MB / 397.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007615/0.1002, allocations: 234.4 kB / 398.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.1005, allocations: 120.8 kB / 398.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1005, allocations: 8 kB / 398.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.1006, allocations: 42.5 kB / 398.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.094e-06/0.1006, allocations: 0 / 398.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.0007057/0.1013, allocations: 358 kB / 398.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.1013, allocations: 55.39 kB / 398.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004587/0.1018, allocations: 397.5 kB / 399.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.1018, allocations: 37.7 kB / 399.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.102, allocations: 236 kB / 399.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.868e-05/0.1021, allocations: 102.6 kB / 399.4 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.1022, allocations: 69.61 kB / 399.5 MB, free: 12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1024, allocations: 354.8 kB / 399.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002245/0.1026, allocations: 104.4 kB / 399.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002829/0.1029, allocations: 216.5 kB / 400.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002015/0.1049, allocations: 0.684 MB / 400.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.105, allocations: 0 / 400.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008277/0.1058, allocations: 448.7 kB / 401.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.1058, allocations: 11.98 kB / 401.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1058, allocations: 4 kB / 401.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.1059, allocations: 4 kB / 401.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.1063, allocations: 107.8 kB / 401.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.069e-05/0.1063, allocations: 4 kB / 401.4 MB, free: 9.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.1065, allocations: 55.42 kB / 401.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.1066, allocations: 12 kB / 401.5 MB, free: 9.906 MB / 302.1 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (R_Bias.TS_in,R.TS_in,R_Bias.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * 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.000284/0.1069, allocations: 207.7 kB / 401.7 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.902e-05/0.1069, allocations: 39.47 kB / 401.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006506/0.1076, allocations: 337.3 kB / 402 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1076, allocations: 4 kB / 402 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1076, allocations: 0 / 402 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1076, allocations: 0 / 402 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004741/0.1081, allocations: 401.2 kB / 402.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.1081, allocations: 3.984 kB / 402.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004306/0.1086, allocations: 79.89 kB / 402.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.1086, allocations: 4 kB / 402.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.086e-05/0.1086, allocations: 11.98 kB / 402.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.1086, allocations: 0 / 402.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1086, allocations: 3.938 kB / 402.5 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008011/0.1094, allocations: 0.5197 MB / 403.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.1096, allocations: 120.5 kB / 403.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.1096, allocations: 11.98 kB / 403.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.1098, allocations: 19.98 kB / 403.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.1099, allocations: 19.97 kB / 403.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.1099, allocations: 4 kB / 403.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002642/0.1101, allocations: 275.1 kB / 403.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1102, allocations: 4 kB / 403.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.1105, allocations: 67.84 kB / 403.6 MB, free: 7.703 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (R.FBout,R_Bias.FBout,ProcessCtrl.Y[3],ProcessCtrl.U[2],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.U[2],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.U[2],ProcessBias.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001068/0.1116, allocations: 1.068 MB / 404.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006246/0.1122, allocations: 335.6 kB / 405 MB, free: 6.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1122, allocations: 4 kB / 405 MB, free: 6.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002394/0.1125, allocations: 131.8 kB / 405.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.1129, allocations: 53.67 kB / 405.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004511/0.1174, allocations: 3.762 MB / 408.9 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.1179, allocations: 0.838 MB / 409.8 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.1181, allocations: 79.16 kB / 409.8 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.1183, allocations: 143.4 kB / 410 MB, free: 1.086 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1183, allocations: 0 / 410 MB, free: 1.086 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03802/0.1563, allocations: 6.452 MB / 416.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/7.76, allocations: 12 kB / 416.4 MB, free: 10.66 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe 2>&1)