Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.0009745/0.0009745, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007976/0.007976, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.464/1.464, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05448/0.05448, allocations: 10.75 MB / 281.5 MB, free: 10.45 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.0005268/0.0005268, allocations: 15.98 kB / 342.3 MB, free: 23.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.0987, allocations: 49.99 MB / 392.3 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.002576/0.1013, allocations: 1.862 MB / 394.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.103, allocations: 1.037 MB / 395.2 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.1031, allocations: 15.88 kB / 395.2 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.1034, allocations: 71.59 kB / 395.3 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.1036, allocations: 55.69 kB / 395.4 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000722/0.1043, allocations: 275.6 kB / 395.6 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005444/0.1048, allocations: 0.555 MB / 396.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.1051, allocations: 81.27 kB / 396.3 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.1053, allocations: 183.2 kB / 396.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.1056, allocations: 227.1 kB / 396.7 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.815e-05/0.1056, allocations: 16 kB / 396.7 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.1058, allocations: 87.92 kB / 396.8 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.106, allocations: 135.6 kB / 396.9 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.1061, allocations: 220.2 kB / 397.1 MB, free: 488 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004187/0.1066, allocations: 474.1 kB / 397.6 MB, free: 12 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1066, allocations: 0 / 397.6 MB, free: 12 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1066, allocations: 0 / 397.6 MB, free: 12 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1066, allocations: 0 / 397.6 MB, free: 12 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001208/0.1078, allocations: 0.7728 MB / 398.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.1079, allocations: 12.03 kB / 398.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.069e-05/0.108, allocations: 82.7 kB / 398.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.012e-05/0.1081, allocations: 60.19 kB / 398.5 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004965/0.1086, allocations: 413.8 kB / 398.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.7e-05/0.1086, allocations: 37.31 kB / 399 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.966e-05/0.1087, allocations: 44.38 kB / 399 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007707/0.1095, allocations: 0.5085 MB / 399.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.1095, allocations: 7.906 kB / 399.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.1096, allocations: 16 kB / 399.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.1096, allocations: 8 kB / 399.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006291/0.1102, allocations: 403.6 kB / 399.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002488/0.1127, allocations: 1.814 MB / 401.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.1132, allocations: 266.4 kB / 402 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002667/0.1135, allocations: 184.6 kB / 402.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.1136, allocations: 8 kB / 402.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003775/0.1139, allocations: 256.9 kB / 402.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.783e-06/0.114, allocations: 0 / 402.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.000924/0.1149, allocations: 0.5821 MB / 403 MB, free: 10.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.1149, allocations: 93.11 kB / 403.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004581/0.1154, allocations: 497.8 kB / 403.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.1154, allocations: 33.7 kB / 403.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.1156, allocations: 279.9 kB / 403.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.548e-05/0.1157, allocations: 134.1 kB / 404 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-05/0.1158, allocations: 65.61 kB / 404.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.116, allocations: 370.7 kB / 404.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.1162, allocations: 173.1 kB / 404.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003517/0.1166, allocations: 329.8 kB / 405 MB, free: 8.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.1186, allocations: 1.082 MB / 406 MB, free: 7.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1186, allocations: 0 / 406 MB, free: 7.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009742/0.1196, allocations: 0.7262 MB / 406.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.48e-05/0.1197, allocations: 44.34 kB / 406.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1197, allocations: 4 kB / 406.8 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.1197, allocations: 8 kB / 406.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.1202, allocations: 132.3 kB / 406.9 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.1202, allocations: 11.94 kB / 407 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.1205, allocations: 75.27 kB / 407 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.1205, allocations: 24 kB / 407.1 MB, free: 6.055 MB / 302.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,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 (70): * Single equations (assignments): 69 * 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.0003284/0.1208, allocations: 286.7 kB / 407.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.1209, allocations: 51.34 kB / 407.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008168/0.1217, allocations: 0.5294 MB / 407.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1217, allocations: 0 / 407.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.1218, allocations: 4 kB / 407.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1218, allocations: 3.984 kB / 407.9 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004523/0.1222, allocations: 476.7 kB / 408.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1222, allocations: 0 / 408.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000466/0.1227, allocations: 87.88 kB / 408.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.1227, allocations: 4 kB / 408.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.708e-05/0.1228, allocations: 23.98 kB / 408.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.1228, allocations: 0 / 408.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1228, allocations: 0 / 408.5 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009654/0.1238, allocations: 0.7159 MB / 409.2 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.682e-05/0.1239, allocations: 124.6 kB / 409.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.448e-05/0.1239, allocations: 19.98 kB / 409.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.1241, allocations: 23.92 kB / 409.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.348e-05/0.1242, allocations: 23.97 kB / 409.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.1242, allocations: 8 kB / 409.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003261/0.1245, allocations: 342.8 kB / 409.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.1246, allocations: 0 / 409.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003823/0.1249, allocations: 119.7 kB / 409.9 MB, free: 3.129 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.001308/0.1263, allocations: 1.308 MB / 411.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007842/0.1271, allocations: 0.5472 MB / 411.7 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1271, allocations: 0 / 411.7 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.1274, allocations: 279.2 kB / 412 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003473/0.1278, allocations: 47.67 kB / 412 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.1333, allocations: 5.206 MB / 417.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.1338, allocations: 0.882 MB / 418.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000268/0.1341, allocations: 112.1 kB / 418.2 MB, free: 10.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/0.1343, allocations: 183.3 kB / 418.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1343, allocations: 0 / 418.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1225/0.2568, allocations: 8.438 MB / 426.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002386/0.2571, allocations: 227.6 kB / 427.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/2.637, allocations: 0 / 427.1 MB, free: 1.652 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)