Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.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.LinearSystems.Examples.Basic,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.Basic,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic",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.001661/0.001661, allocations: 108 kB / 15.6 MB, free: 132 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.00222/0.00222, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.407/2.407, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1224/0.1224, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.002444/0.002444, allocations: 68.31 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1528, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.005805/0.1587, allocations: 1.85 MB / 391.5 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.1608, allocations: 0.6108 MB / 392.1 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.161, allocations: 0 / 392.1 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.784e-05/0.1612, allocations: 19.69 kB / 392.1 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.1614, allocations: 31.67 kB / 392.2 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.1625, allocations: 191.3 kB / 392.4 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004665/0.163, allocations: 203.5 kB / 392.5 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/0.1633, allocations: 48.59 kB / 392.6 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.1634, allocations: 83.53 kB / 392.7 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.1637, allocations: 107.4 kB / 392.8 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.757e-05/0.1638, allocations: 16 kB / 392.8 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004735/0.1643, allocations: 151.9 kB / 392.9 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.544e-05/0.1644, allocations: 51.77 kB / 393 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001836/0.1646, allocations: 107.3 kB / 393.1 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006752/0.1653, allocations: 299.2 kB / 393.4 MB, free: 2.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.197e-05/0.1653, allocations: 0 / 393.4 MB, free: 2.383 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1653, allocations: 7.938 kB / 393.4 MB, free: 2.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1653, allocations: 0 / 393.4 MB, free: 2.375 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001525/0.1669, allocations: 0.549 MB / 394 MB, free: 1.773 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.901e-05/0.167, allocations: 11.89 kB / 394 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.968e-05/0.1671, allocations: 46.73 kB / 394 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.1672, allocations: 28.66 kB / 394 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004983/0.1678, allocations: 267.6 kB / 394.3 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.1678, allocations: 12.38 kB / 394.3 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.1679, allocations: 16.38 kB / 394.3 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005972/0.1685, allocations: 179 kB / 394.5 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.1686, allocations: 7.922 kB / 394.5 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/0.1686, allocations: 4 kB / 394.5 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1686, allocations: 8 kB / 394.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003424/0.169, allocations: 63.95 kB / 394.6 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1707, allocations: 0.5197 MB / 395.1 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/0.1713, allocations: 134.6 kB / 395.2 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.1715, allocations: 64.83 kB / 395.3 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.1716, allocations: 4 kB / 395.3 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000502/0.1721, allocations: 143.3 kB / 395.4 MB, free: 140 kB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 3.957e-06/0.1721, allocations: 0 / 395.4 MB, free: 140 kB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001098/0.1732, allocations: 268.8 kB / 395.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/0.1734, allocations: 170.2 kB / 395.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004854/0.1739, allocations: 266.6 kB / 396.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.981e-05/0.174, allocations: 41.64 kB / 396.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.1742, allocations: 148.4 kB / 396.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.1744, allocations: 67.09 kB / 396.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.1746, allocations: 57.98 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.1748, allocations: 334.8 kB / 396.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.1751, allocations: 60.19 kB / 396.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004441/0.1755, allocations: 185.6 kB / 397 MB, free: 14.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007194/0.1763, allocations: 237.5 kB / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1763, allocations: 4 kB / 397.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009316/0.1773, allocations: 264.9 kB / 397.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.1773, allocations: 8.469 kB / 397.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.1773, allocations: 4 kB / 397.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.035e-05/0.1774, allocations: 8 kB / 397.5 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.1779, allocations: 59.91 kB / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.512e-05/0.178, allocations: 11.88 kB / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.1783, allocations: 27.83 kB / 397.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.294e-05/0.1784, allocations: 12 kB / 397.6 MB, free: 13.76 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: complexPoles_dig.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (complexPoles_dig.y,$PRE.complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1,$PRE.complexPoles_dig.y_pre1,lLag_dig.y,$PRE.lLag_dig.y,fO_dig.y,$PRE.fO_dig.y,int_dig.y,$PRE.int_dig.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0003519/0.1788, allocations: 149.5 kB / 397.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.594e-05/0.1789, allocations: 27.72 kB / 397.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.179, allocations: 30.17 kB / 397.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.179, allocations: 0 / 397.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.179, allocations: 3.938 kB / 397.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.1791, allocations: 8 kB / 397.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001374/0.1805, allocations: 0.5451 MB / 398.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1805, allocations: 0 / 398.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004486/0.1809, allocations: 43.97 kB / 398.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.181, allocations: 0 / 398.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.803e-05/0.181, allocations: 7.938 kB / 398.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.405e-06/0.181, allocations: 3.984 kB / 398.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1811, allocations: 0 / 398.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.1822, allocations: 386.5 kB / 398.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.1824, allocations: 112.7 kB / 398.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.983e-05/0.1825, allocations: 16 kB / 398.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003196/0.1828, allocations: 11.98 kB / 399 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.822e-05/0.1829, allocations: 11.98 kB / 399 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.183, allocations: 4 kB / 399 MB, free: 12.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003295/0.1833, allocations: 190 kB / 399.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1833, allocations: 4 kB / 399.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007819/0.1841, allocations: 75.98 kB / 399.2 MB, free: 12.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (int.y,fO.y,lLag.dy,complexPoles.y,complexPoles.dy) * Number of discrete variables: 10 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,int_dig.y,fO_dig.y,lLag_dig.y,complexPoles_dig.y,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1) * Number of discrete states: 10 (complexPoles_dig.u,complexPoles_dig.u_pre1,complexPoles_dig.y,complexPoles_dig.y_pre1,lLag_dig.u,lLag_dig.y,fO_dig.u,fO_dig.y,int_dig.u,int_dig.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001838/0.186, allocations: 0.9852 MB / 400.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007656/0.1868, allocations: 172.7 kB / 400.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1868, allocations: 4.062 kB / 400.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.1871, allocations: 79.34 kB / 400.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007618/0.1879, allocations: 44.89 kB / 400.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006885/0.1948, allocations: 2.923 MB / 403.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.1954, allocations: 0.7441 MB / 404.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000248/0.1956, allocations: 30.28 kB / 404.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.1958, allocations: 79.41 kB / 404.3 MB, free: 6.781 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1959, allocations: 3.938 kB / 404.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1219/0.3178, allocations: 5.611 MB / 409.9 MB, free: 1.195 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17/17.31, allocations: 7.938 kB / 409.9 MB, free: 1.188 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)