Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",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.009003/0.009003, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08397/0.08397, allocations: 10.74 MB / 26.59 MB, free: 2.266 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.671/1.671, allocations: 205.4 MB / 235.2 MB, free: 112 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009067/0.0009066, allocations: 89.3 kB / 285.9 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003621, allocations: 8 kB / 346.5 MB, free: 5.074 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1281, allocations: 49.99 MB / 396.5 MB, free: 2.984 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4199/0.5481, allocations: 77.37 MB / 473.9 MB, free: 18.15 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.5484, allocations: 75.41 kB / 473.9 MB, free: 18.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00579/0.5542, allocations: 2.415 MB / 476.4 MB, free: 16.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.948e-06/0.5543, allocations: 0 / 476.4 MB, free: 16.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.5543, allocations: 0 / 476.4 MB, free: 16.74 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005017/0.5548, allocations: 418.4 kB / 476.8 MB, free: 16.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.5548, allocations: 13.7 kB / 476.8 MB, free: 16.3 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.701e-05/0.5549, allocations: 38.98 kB / 476.8 MB, free: 16.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.5549, allocations: 11.81 kB / 476.8 MB, free: 16.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.5551, allocations: 210.5 kB / 477 MB, free: 16.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.5552, allocations: 15 kB / 477 MB, free: 16.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.5552, allocations: 10.28 kB / 477.1 MB, free: 16.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.5554, allocations: 85.08 kB / 477.1 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.5554, allocations: 3.938 kB / 477.1 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.5554, allocations: 4 kB / 477.1 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.5554, allocations: 0 / 477.1 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.5556, allocations: 57.28 kB / 477.2 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005693/0.5562, allocations: 377.6 kB / 477.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.5563, allocations: 113.9 kB / 477.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.5564, allocations: 0 / 477.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.5566, allocations: 106.8 kB / 477.8 MB, free: 15.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.5566, allocations: 0 / 477.8 MB, free: 15.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003858/0.557, allocations: 196.6 kB / 478 MB, free: 15.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.557, allocations: 51.41 kB / 478 MB, free: 15.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.5572, allocations: 152 kB / 478.2 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.5572, allocations: 25.7 kB / 478.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.5572, allocations: 118.1 kB / 478.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.609e-05/0.5573, allocations: 34.7 kB / 478.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.134e-06/0.5573, allocations: 3.5 kB / 478.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.422e-05/0.5574, allocations: 332.1 kB / 478.7 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.046e-05/0.5574, allocations: 33.97 kB / 478.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.409e-05/0.5575, allocations: 78.3 kB / 478.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.829e-05/0.5576, allocations: 44.56 kB / 478.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.5576, allocations: 3.953 kB / 478.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002192/0.5579, allocations: 170.4 kB / 479 MB, free: 14.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.5579, allocations: 4 kB / 479 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.5579, allocations: 5.031 kB / 479 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.5579, allocations: 0 / 479 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.5581, allocations: 36.12 kB / 479 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.5581, allocations: 4 kB / 479.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.819e-05/0.5581, allocations: 12.78 kB / 479.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.5582, allocations: 8 kB / 479.1 MB, free: 14.28 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.fO_dig_BE.y,fO_dig_BE.y,$PRE.fO_dig_FE.y,fO_dig_FE.y,$PRE.fO_dig_TU.y,fO_dig_TU.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001024/0.5583, allocations: 142.2 kB / 479.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.878e-05/0.5583, allocations: 11.86 kB / 479.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.5583, allocations: 18.75 kB / 479.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.5584, allocations: 0.625 kB / 479.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5584, allocations: 0 / 479.2 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.5584, allocations: 5.688 kB / 479.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004003/0.5588, allocations: 446.8 kB / 479.7 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5588, allocations: 0.75 kB / 479.7 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.503e-05/0.5589, allocations: 19.33 kB / 479.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5589, allocations: 3.938 kB / 479.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.5589, allocations: 7.375 kB / 479.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.5589, allocations: 1.453 kB / 479.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5589, allocations: 1.625 kB / 479.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/0.5593, allocations: 299.8 kB / 480 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.5593, allocations: 86.55 kB / 480.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.5594, allocations: 9.234 kB / 480.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.463e-05/0.5595, allocations: 5.547 kB / 480.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.5595, allocations: 14.09 kB / 480.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.5595, allocations: 5.406 kB / 480.1 MB, free: 13.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.256e-05/0.5596, allocations: 123.7 kB / 480.2 MB, free: 13.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5596, allocations: 4 kB / 480.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002546/0.5599, allocations: 35.38 kB / 480.3 MB, free: 13.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000568/0.5604, allocations: 0.8524 MB / 481.1 MB, free: 12.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002188/0.5607, allocations: 106.2 kB / 481.2 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5607, allocations: 0 / 481.2 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.666e-05/0.5608, allocations: 58.41 kB / 481.3 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.561, allocations: 27.52 kB / 481.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.5625, allocations: 1.777 MB / 483.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.5627, allocations: 0.7166 MB / 483.8 MB, free: 9.875 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.03e-05/0.5627, allocations: 21.34 kB / 483.8 MB, free: 9.852 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.5628, allocations: 31.75 kB / 483.9 MB, free: 9.836 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5628, allocations: 0 / 483.9 MB, free: 9.836 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01439/0.5772, allocations: 2.648 MB / 486.5 MB, free: 7.258 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.5774, allocations: 205.4 kB / 486.7 MB, free: 7.02 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.256, allocations: 0 / 486.7 MB, free: 7.02 MB / 346.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)