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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001262/0.001262, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05983/0.05983, allocations: 10.66 MB / 23.92 MB, free: 1.379 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.2 MB / 232.1 MB, free: 12.83 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 86.41 kB / 282.6 MB, free: 13.66 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.794e-05/4.797e-05, allocations: 7.984 kB / 340.6 MB, free: 3.602 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3236, allocations: 49.98 MB / 390.6 MB, free: 35.8 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.4389, allocations: 78.58 MB / 469.1 MB, free: 5.117 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.4393, allocations: 67.97 kB / 469.2 MB, free: 5.051 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.01479/0.4541, allocations: 5.172 MB / 474.4 MB, free: 15.87 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4541, allocations: 0 / 474.4 MB, free: 15.87 MB / 362.8 MB Notification: Performance of Transformations before backend: time 2.934e-05/0.4542, allocations: 4 kB / 474.4 MB, free: 15.86 MB / 362.8 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.0007308/0.4549, allocations: 0.5036 MB / 474.9 MB, free: 15.32 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.455, allocations: 8.25 kB / 474.9 MB, free: 15.31 MB / 362.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.405e-05/0.455, allocations: 54.48 kB / 474.9 MB, free: 15.25 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.863e-05/0.4551, allocations: 31.61 kB / 475 MB, free: 15.21 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000391/0.4555, allocations: 266.5 kB / 475.2 MB, free: 14.91 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.4555, allocations: 15.94 kB / 475.2 MB, free: 14.9 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.492e-05/0.4556, allocations: 15.98 kB / 475.3 MB, free: 14.88 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003085/0.4559, allocations: 163.6 kB / 475.4 MB, free: 14.7 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.4559, allocations: 3.984 kB / 475.4 MB, free: 14.7 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.729e-05/0.456, allocations: 12 kB / 475.4 MB, free: 14.69 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.456, allocations: 3.953 kB / 475.4 MB, free: 14.68 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.4561, allocations: 55.98 kB / 475.5 MB, free: 14.63 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.4574, allocations: 0.5236 MB / 476 MB, free: 14.05 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.4577, allocations: 132.6 kB / 476.2 MB, free: 13.92 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.4578, allocations: 60.84 kB / 476.2 MB, free: 13.86 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.4578, allocations: 0 / 476.2 MB, free: 13.86 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.4581, allocations: 131.3 kB / 476.3 MB, free: 13.71 MB / 362.8 MB Notification: Performance of pre-optimization done (n=20): time 1.734e-06/0.4581, allocations: 0 / 476.3 MB, free: 13.71 MB / 362.8 MB Notification: Performance of matching and sorting (n=20): time 0.0004324/0.4585, allocations: 206 kB / 476.5 MB, free: 13.51 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.4586, allocations: 162.2 kB / 476.7 MB, free: 13.31 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002747/0.4589, allocations: 231.1 kB / 476.9 MB, free: 13.08 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.459, allocations: 37.64 kB / 477 MB, free: 13.04 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.4591, allocations: 148.7 kB / 477.1 MB, free: 12.89 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.229e-05/0.4592, allocations: 71.08 kB / 477.2 MB, free: 12.82 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.4592, allocations: 8 kB / 477.2 MB, free: 12.81 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.4594, allocations: 338.8 kB / 477.5 MB, free: 12.47 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.294e-05/0.4595, allocations: 48.28 kB / 477.6 MB, free: 12.42 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.4597, allocations: 181.5 kB / 477.7 MB, free: 12.18 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001601/0.4599, allocations: 79.97 kB / 477.8 MB, free: 12.1 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.4599, allocations: 0 / 477.8 MB, free: 12.1 MB / 362.8 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003936/0.4603, allocations: 257.4 kB / 478.1 MB, free: 11.84 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.4603, allocations: 4 kB / 478.1 MB, free: 11.84 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.4603, allocations: 4 kB / 478.1 MB, free: 11.84 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.4603, allocations: 8 kB / 478.1 MB, free: 11.83 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002638/0.4606, allocations: 59.84 kB / 478.1 MB, free: 11.77 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.4606, allocations: 7.938 kB / 478.1 MB, free: 11.76 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.4608, allocations: 31.73 kB / 478.2 MB, free: 11.73 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.4609, allocations: 16 kB / 478.2 MB, free: 11.71 MB / 362.8 MB Warning: Assuming fixed start value for the following 1 variables: complexPoles_dig.u_pre1:DISCRETE(fixed = false 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 ($PRE.complexPoles_dig.y,complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,$PRE.complexPoles_dig.y_pre1,complexPoles_dig.y_pre1,$PRE.lLag_dig.y,lLag_dig.y,$PRE.fO_dig.y,fO_dig.y,$PRE.int_dig.y,int_dig.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.4611, allocations: 131.1 kB / 478.3 MB, free: 11.58 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.068e-05/0.4611, allocations: 23.72 kB / 478.3 MB, free: 11.56 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.882e-05/0.4612, allocations: 29.95 kB / 478.4 MB, free: 11.53 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.4612, allocations: 0 / 478.4 MB, free: 11.53 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4612, allocations: 0 / 478.4 MB, free: 11.53 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.4612, allocations: 3.984 kB / 478.4 MB, free: 11.53 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007542/0.462, allocations: 0.5482 MB / 478.9 MB, free: 10.93 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.462, allocations: 0 / 478.9 MB, free: 10.93 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.4622, allocations: 35.98 kB / 479 MB, free: 10.89 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.4623, allocations: 4 kB / 479 MB, free: 10.89 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.4623, allocations: 7.984 kB / 479 MB, free: 10.88 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.4623, allocations: 4 kB / 479 MB, free: 10.88 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.4623, allocations: 0 / 479 MB, free: 10.88 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005986/0.4629, allocations: 383.2 kB / 479.4 MB, free: 10.48 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 7.958e-05/0.463, allocations: 108.7 kB / 479.5 MB, free: 10.36 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.238e-05/0.463, allocations: 4.062 kB / 479.5 MB, free: 10.36 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.4632, allocations: 11.98 kB / 479.5 MB, free: 10.34 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.4633, allocations: 11.98 kB / 479.5 MB, free: 10.33 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.4633, allocations: 11.98 kB / 479.5 MB, free: 10.32 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0001975/0.4635, allocations: 179.1 kB / 479.7 MB, free: 10.15 MB / 362.8 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4635, allocations: 0 / 479.7 MB, free: 10.15 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004488/0.464, allocations: 103.8 kB / 479.8 MB, free: 10.05 MB / 362.8 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) * 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 (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.001033/0.465, allocations: 0.9819 MB / 480.8 MB, free: 9.039 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003357/0.4654, allocations: 162 kB / 480.9 MB, free: 8.883 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4654, allocations: 0 / 480.9 MB, free: 8.883 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.4655, allocations: 75.88 kB / 481 MB, free: 8.809 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.4658, allocations: 46.05 kB / 481 MB, free: 8.762 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.4671, allocations: 0.5062 MB / 481.5 MB, free: 8.223 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.4675, allocations: 0.7521 MB / 482.3 MB, free: 7.441 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.4676, allocations: 30.06 kB / 482.3 MB, free: 7.414 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001121/0.4677, allocations: 79.41 kB / 482.4 MB, free: 7.336 MB / 362.8 MB Notification: Performance of SimCode: time 7.02e-07/0.4677, allocations: 0 / 482.4 MB, free: 7.336 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.4864, allocations: 5.065 MB / 487.5 MB, free: 2.355 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002118/0.4867, allocations: 179.2 kB / 487.6 MB, free: 2.121 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.547, allocations: 0 / 487.6 MB, free: 2.121 MB / 362.8 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)