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.007063/0.007063, allocations: 107 kB / 15.74 MB, free: 5.594 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.001264/0.001265, allocations: 196 kB / 16.67 MB, free: 5.52 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.485/1.485, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0567/0.0567, allocations: 10.74 MB / 280.6 MB, free: 1.285 MB / 222.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.00228/0.00228, allocations: 78.06 kB / 390.3 MB, free: 46.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1182, allocations: 49.03 MB / 439.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003287/0.1215, allocations: 2.173 MB / 441.5 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.1236, allocations: 1.037 MB / 442.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003964/0.124, allocations: 15.88 kB / 442.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003993/0.1245, allocations: 83.36 kB / 442.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.1247, allocations: 71.52 kB / 442.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1259, allocations: 319.3 kB / 443 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007329/0.1267, allocations: 0.5865 MB / 443.6 MB, free: 0 / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.127, allocations: 95.84 kB / 443.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.1274, allocations: 211.3 kB / 443.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004652/0.1279, allocations: 239 kB / 444.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.128, allocations: 36 kB / 444.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002274/0.1282, allocations: 111.9 kB / 444.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.1284, allocations: 155.5 kB / 444.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.1287, allocations: 218.6 kB / 444.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006717/0.1293, allocations: 0.5107 MB / 445.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1294, allocations: 0 / 445.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1294, allocations: 0 / 445.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.083e-05/0.1294, allocations: 0 / 445.2 MB, free: 14.44 MB / 334.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.001685/0.1311, allocations: 0.855 MB / 446 MB, free: 13.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.1311, allocations: 15.89 kB / 446.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.1313, allocations: 74.72 kB / 446.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.1314, allocations: 64.19 kB / 446.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006661/0.1321, allocations: 429.9 kB / 446.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.1321, allocations: 33.36 kB / 446.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.47e-05/0.1322, allocations: 48.28 kB / 446.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008707/0.1331, allocations: 0.5046 MB / 447.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.506e-05/0.1331, allocations: 7.984 kB / 447.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.1332, allocations: 16 kB / 447.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.183e-05/0.1332, allocations: 8 kB / 447.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007134/0.1339, allocations: 391.7 kB / 447.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003313/0.1373, allocations: 1.783 MB / 449.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.1379, allocations: 280.7 kB / 449.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002911/0.1382, allocations: 177.1 kB / 449.8 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.1383, allocations: 12.25 kB / 449.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004079/0.1387, allocations: 260.8 kB / 450.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 2.605e-06/0.1387, allocations: 0 / 450.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.001025/0.1397, allocations: 0.5778 MB / 450.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.1398, allocations: 89.05 kB / 450.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005755/0.1404, allocations: 0.49 MB / 451.3 MB, free: 8.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.1404, allocations: 33.7 kB / 451.3 MB, free: 8.043 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/0.1407, allocations: 280 kB / 451.6 MB, free: 7.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.1408, allocations: 134.1 kB / 451.7 MB, free: 7.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.141, allocations: 110.1 kB / 451.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.1412, allocations: 366.7 kB / 452.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.1415, allocations: 169.1 kB / 452.3 MB, free: 6.98 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004001/0.1419, allocations: 329.7 kB / 452.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00227/0.1442, allocations: 1.074 MB / 453.7 MB, free: 5.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.096e-06/0.1442, allocations: 4 kB / 453.7 MB, free: 5.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00119/0.1454, allocations: 0.7221 MB / 454.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.1454, allocations: 37.69 kB / 454.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.1455, allocations: 4.656 kB / 454.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.1455, allocations: 12 kB / 454.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004783/0.146, allocations: 135.8 kB / 454.6 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.596e-05/0.146, allocations: 11.94 kB / 454.6 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.1463, allocations: 67.3 kB / 454.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.1464, allocations: 24 kB / 454.7 MB, free: 4.387 MB / 334.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.0003575/0.1467, allocations: 286.3 kB / 455 MB, free: 4.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-05/0.1468, allocations: 47.44 kB / 455.1 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008792/0.1477, allocations: 0.5257 MB / 455.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1477, allocations: 0 / 455.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1477, allocations: 4 kB / 455.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1477, allocations: 3.984 kB / 455.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005128/0.1483, allocations: 469 kB / 456.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1483, allocations: 0 / 456.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.1487, allocations: 87.88 kB / 456.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.1488, allocations: 0 / 456.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/0.1488, allocations: 19.98 kB / 456.2 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1488, allocations: 8 kB / 456.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1488, allocations: 0 / 456.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.15, allocations: 0.7118 MB / 456.9 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1501, allocations: 124.5 kB / 457 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.344e-05/0.1502, allocations: 19.98 kB / 457 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.1504, allocations: 15.98 kB / 457 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.1506, allocations: 27.97 kB / 457.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.1506, allocations: 16 kB / 457.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004106/0.1511, allocations: 338.8 kB / 457.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1511, allocations: 0 / 457.4 MB, free: 1.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004159/0.1515, allocations: 111.8 kB / 457.5 MB, free: 1.488 MB / 334.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.001462/0.153, allocations: 1.296 MB / 458.8 MB, free: 164 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000831/0.1538, allocations: 0.5591 MB / 459.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1538, allocations: 0 / 459.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000337/0.1542, allocations: 283.3 kB / 459.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003271/0.1545, allocations: 49.22 kB / 459.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00674/0.1613, allocations: 4.923 MB / 464.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005622/0.1618, allocations: 0.8781 MB / 465.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003073/0.1621, allocations: 112.1 kB / 465.6 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002629/0.1624, allocations: 187.4 kB / 465.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1624, allocations: 0 / 465.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03333/0.1958, allocations: 9.196 MB / 475 MB, free: 15.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.785/8.981, allocations: 11.86 kB / 475 MB, free: 15.77 MB / 366.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)