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: translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007943/0.0007942, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008823/0.0008825, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05472/0.05472, allocations: 10.74 MB / 281.1 MB, free: 10.53 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.0005082/0.0005083, allocations: 16 kB / 341.6 MB, free: 23.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1265, allocations: 50.01 MB / 391.6 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.002377/0.1289, allocations: 1.797 MB / 393.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.1305, allocations: 0.9715 MB / 394.4 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1307, allocations: 11.88 kB / 394.4 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002716/0.131, allocations: 67.61 kB / 394.5 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.1311, allocations: 55.62 kB / 394.5 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007248/0.1318, allocations: 251.6 kB / 394.8 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000555/0.1324, allocations: 0.4966 MB / 395.3 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.1326, allocations: 69 kB / 395.3 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.1328, allocations: 191.2 kB / 395.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.1331, allocations: 219.1 kB / 395.7 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.458e-05/0.1332, allocations: 20 kB / 395.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.1333, allocations: 75.94 kB / 395.8 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001449/0.1335, allocations: 135.5 kB / 396 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.1336, allocations: 97.39 kB / 396.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.1339, allocations: 359.5 kB / 396.4 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1339, allocations: 3.938 kB / 396.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.134, allocations: 0 / 396.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.134, allocations: 0 / 396.4 MB, free: 0.9297 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001259/0.1352, allocations: 0.765 MB / 397.2 MB, free: 116 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.1353, allocations: 12.03 kB / 397.2 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.1354, allocations: 67.2 kB / 397.3 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005834/0.136, allocations: 404.8 kB / 397.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.1361, allocations: 32.94 kB / 397.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.253e-05/0.1361, allocations: 47.91 kB / 397.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008278/0.137, allocations: 0.5006 MB / 398.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.137, allocations: 11.92 kB / 398.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.1371, allocations: 20 kB / 398.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.1371, allocations: 15.95 kB / 398.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006541/0.1377, allocations: 387.7 kB / 398.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002581/0.1403, allocations: 1.802 MB / 400.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000531/0.1409, allocations: 266.4 kB / 400.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.1412, allocations: 184.6 kB / 400.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.1412, allocations: 4 kB / 400.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004181/0.1416, allocations: 272.8 kB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 1.923e-06/0.1417, allocations: 0 / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009686/0.1426, allocations: 0.5783 MB / 401.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.1427, allocations: 89.03 kB / 401.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005223/0.1432, allocations: 497.8 kB / 402.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.1433, allocations: 37.7 kB / 402.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.1435, allocations: 275.9 kB / 402.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.1436, allocations: 134.2 kB / 402.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.1436, allocations: 8 kB / 402.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1438, allocations: 366.8 kB / 403.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.1441, allocations: 161.1 kB / 403.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003545/0.1445, allocations: 337.8 kB / 403.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003742/0.1449, allocations: 270.6 kB / 403.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1449, allocations: 0 / 403.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001004/0.1459, allocations: 0.7189 MB / 404.6 MB, free: 8.371 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.794e-05/0.1459, allocations: 44.66 kB / 404.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.146, allocations: 8.062 kB / 404.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.146, allocations: 8 kB / 404.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004475/0.1464, allocations: 127.8 kB / 404.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/0.1465, allocations: 19.92 kB / 404.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.1467, allocations: 71.27 kB / 404.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.1468, allocations: 24 kB / 404.9 MB, free: 8.07 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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] 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.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,$PRE.Disturbance.nextEvent,Disturbance.nextEvent,Disturbance.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003248/0.1471, allocations: 270.5 kB / 405.2 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.929e-05/0.1472, allocations: 59.3 kB / 405.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.148, allocations: 0.5218 MB / 405.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.148, allocations: 4 kB / 405.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.148, allocations: 0 / 405.7 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.148, allocations: 4 kB / 405.8 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004819/0.1485, allocations: 473.1 kB / 406.2 MB, free: 6.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1485, allocations: 3.938 kB / 406.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004528/0.149, allocations: 83.89 kB / 406.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.149, allocations: 4 kB / 406.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/0.149, allocations: 23.94 kB / 406.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1491, allocations: 0 / 406.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1491, allocations: 0 / 406.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.1501, allocations: 0.7197 MB / 407 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.1503, allocations: 132.6 kB / 407.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.84e-05/0.1503, allocations: 12 kB / 407.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.1505, allocations: 23.94 kB / 407.2 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.512e-05/0.1506, allocations: 19.97 kB / 407.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.814e-05/0.1506, allocations: 15.98 kB / 407.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000345/0.151, allocations: 338.8 kB / 407.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.151, allocations: 0 / 407.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.1514, allocations: 119.7 kB / 407.7 MB, free: 5.16 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 (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.0002195/0.1516, allocations: 140.1 kB / 407.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007718/0.1524, allocations: 0.5435 MB / 408.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1524, allocations: 192 / 408.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003302/0.1527, allocations: 287.1 kB / 408.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.1531, allocations: 46.55 kB / 408.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.1546, allocations: 1.269 MB / 410 MB, free: 2.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.1551, allocations: 0.8936 MB / 410.9 MB, free: 1.898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002554/0.1554, allocations: 104.1 kB / 411 MB, free: 1.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.239e-05/0.1554, allocations: 39.42 kB / 411 MB, free: 1.754 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1555, allocations: 0 / 411 MB, free: 1.754 MB / 302.1 MB Notification: Performance of Templates: time 0.00815/0.1636, allocations: 3.511 MB / 414.5 MB, free: 14.24 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.makefile Environment - environmentSimulation: (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1) Environment - environmentSimulation: