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.001599/0.001599, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07825/0.07825, allocations: 10.65 MB / 18.73 MB, free: 1.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.798/1.798, allocations: 205.3 MB / 226.9 MB, free: 7.906 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008817/0.0008816, allocations: 102.4 kB / 277.3 MB, free: 5.438 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.322e-05, allocations: 0 / 333.6 MB, free: 28.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1676, allocations: 49.99 MB / 383.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.466/0.6336, allocations: 78.22 MB / 461.8 MB, free: 6.223 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.634, allocations: 78.83 kB / 461.9 MB, free: 6.18 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01409/0.6481, allocations: 5.142 MB / 467.1 MB, free: 1.879 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6482, allocations: 0 / 467.1 MB, free: 1.879 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.6482, allocations: 4 kB / 467.1 MB, free: 1.875 MB / 330.7 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.0006689/0.6489, allocations: 0.5025 MB / 467.6 MB, free: 1.34 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.6489, allocations: 8.25 kB / 467.6 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.649, allocations: 35.66 kB / 467.6 MB, free: 1.297 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.6493, allocations: 272.5 kB / 467.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.6494, allocations: 4 kB / 467.9 MB, free: 1.004 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.6494, allocations: 8 kB / 467.9 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001299/0.6496, allocations: 49.88 kB / 467.9 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.6499, allocations: 160.3 kB / 468.1 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.6499, allocations: 0 / 468.1 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.6499, allocations: 0 / 468.1 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.6499, allocations: 7.953 kB / 468.1 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008864/0.6508, allocations: 0.4884 MB / 468.6 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002296/0.6511, allocations: 130.4 kB / 468.7 MB, free: 248 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.416e-05/0.6512, allocations: 53.8 kB / 468.8 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.6512, allocations: 0 / 468.8 MB, free: 208 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.6514, allocations: 131.3 kB / 468.9 MB, free: 92 kB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.6514, allocations: 0 / 468.9 MB, free: 92 kB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.0006485/0.6521, allocations: 249.3 kB / 469.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.6522, allocations: 165.7 kB / 469.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.6524, allocations: 215.9 kB / 469.5 MB, free: 15.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.6525, allocations: 32.83 kB / 469.5 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.6526, allocations: 147 kB / 469.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.6527, allocations: 63.59 kB / 469.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-06/0.6527, allocations: 0 / 469.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.6528, allocations: 340.2 kB / 470.1 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.656e-05/0.6529, allocations: 43.34 kB / 470.1 MB, free: 14.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.6531, allocations: 178.2 kB / 470.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.6532, allocations: 71.91 kB / 470.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6533, allocations: 0 / 470.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003384/0.6536, allocations: 219.9 kB / 470.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.6536, allocations: 15.11 kB / 470.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.6537, allocations: 8 kB / 470.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.6537, allocations: 4 kB / 470.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.654, allocations: 55.91 kB / 470.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.654, allocations: 7.938 kB / 470.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.6542, allocations: 23.78 kB / 470.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.6542, allocations: 15.75 kB / 470.7 MB, free: 14.37 MB / 346.7 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.0001574/0.6544, allocations: 124.4 kB / 470.8 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005045/0.6549, allocations: 248.4 kB / 471.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.6549, allocations: 23.72 kB / 471.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.57e-05/0.655, allocations: 29.69 kB / 471.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.655, allocations: 7.984 kB / 471.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.655, allocations: 0 / 471.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.655, allocations: 0 / 471.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007768/0.6558, allocations: 0.5575 MB / 471.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6558, allocations: 4 kB / 471.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/0.6561, allocations: 39.66 kB / 471.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.6561, allocations: 0 / 471.7 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.203e-05/0.6561, allocations: 7.938 kB / 471.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.6561, allocations: 0 / 471.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.6561, allocations: 8.875 kB / 471.7 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.6568, allocations: 411.8 kB / 472.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.009e-05/0.6569, allocations: 112.7 kB / 472.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/0.6569, allocations: 7.625 kB / 472.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.6571, allocations: 7.984 kB / 472.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.6571, allocations: 11.98 kB / 472.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.6572, allocations: 11.61 kB / 472.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001612/0.6573, allocations: 171 kB / 472.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6573, allocations: 0 / 472.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003563/0.6577, allocations: 87.86 kB / 472.5 MB, free: 12.67 MB / 346.7 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.001226/0.6589, allocations: 1.02 MB / 473.6 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000293/0.6592, allocations: 142.7 kB / 473.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6593, allocations: 0.9375 kB / 473.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.6594, allocations: 67.42 kB / 473.8 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.6597, allocations: 45.77 kB / 473.8 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.661, allocations: 496.1 kB / 474.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.6615, allocations: 0.7522 MB / 475.1 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.6616, allocations: 38 kB / 475.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.6617, allocations: 77.78 kB / 475.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6617, allocations: 0 / 475.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02665/0.6884, allocations: 4.607 MB / 479.8 MB, free: 5.582 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.6887, allocations: 158.5 kB / 479.9 MB, free: 5.387 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.14/2.828, allocations: 0 / 479.9 MB, free: 5.387 MB / 346.7 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)