Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.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.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",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.005869/0.005869, allocations: 172.1 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.0582/0.0582, allocations: 10.74 MB / 26.59 MB, free: 2.242 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.787/1.787, allocations: 205.4 MB / 235.2 MB, free: 188 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.0009641/0.0009642, allocations: 88.94 kB / 285.9 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003878, allocations: 8 kB / 346.5 MB, free: 5.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1208, allocations: 49.99 MB / 396.5 MB, free: 2.992 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3771/0.4979, allocations: 77.65 MB / 474.1 MB, free: 17.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.4982, allocations: 78.53 kB / 474.2 MB, free: 17.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007695/0.506, allocations: 3.058 MB / 477.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.506, allocations: 0 / 477.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.506, allocations: 4 kB / 477.3 MB, free: 15.88 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005793/0.5066, allocations: 475 kB / 477.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.5067, allocations: 13.75 kB / 477.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.5067, allocations: 42.95 kB / 477.8 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.5068, allocations: 17.45 kB / 477.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.5071, allocations: 242.8 kB / 478.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.5071, allocations: 11.73 kB / 478.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.252e-05/0.5071, allocations: 12.98 kB / 478.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.5074, allocations: 174.8 kB / 478.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.5075, allocations: 0 / 478.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.5075, allocations: 9.219 kB / 478.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.5075, allocations: 4 kB / 478.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/0.5077, allocations: 61.22 kB / 478.3 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008024/0.5085, allocations: 467.9 kB / 478.8 MB, free: 14.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002277/0.5087, allocations: 125.9 kB / 478.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.5087, allocations: 4 kB / 478.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002802/0.509, allocations: 150.2 kB / 479.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/0.509, allocations: 0 / 479.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005168/0.5096, allocations: 262.6 kB / 479.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.5097, allocations: 179.2 kB / 479.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.5098, allocations: 178.3 kB / 479.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.5099, allocations: 41.56 kB / 479.7 MB, free: 13.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.5099, allocations: 121.8 kB / 479.8 MB, free: 13.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.51, allocations: 50.98 kB / 479.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-06/0.51, allocations: 3.688 kB / 479.9 MB, free: 13.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.058e-05/0.5101, allocations: 333.4 kB / 480.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.5102, allocations: 52.88 kB / 480.2 MB, free: 13.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.5104, allocations: 175.4 kB / 480.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.5105, allocations: 74.89 kB / 480.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.5105, allocations: 7.672 kB / 480.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003596/0.5109, allocations: 256.6 kB / 480.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.5109, allocations: 4 kB / 480.8 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.511, allocations: 7.938 kB / 480.8 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.511, allocations: 4 kB / 480.8 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.5112, allocations: 54.47 kB / 480.8 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.5112, allocations: 8 kB / 480.8 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.5114, allocations: 18.34 kB / 480.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.5114, allocations: 11.19 kB / 480.9 MB, free: 12.61 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.cplxP_dig_TU.u_pre1,cplxP_dig_TU.u_pre1,$PRE.cplxP_dig_TU.y_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,$PRE.cplxP_dig_FE.y_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,$PRE.cplxP_dig_BE.y_pre1,cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.cplxP_dig_BE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_FE.y,$PRE.cplxP_dig_TU.y,cplxP_dig_TU.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0002436/0.5116, allocations: 155.3 kB / 481 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.5117, allocations: 23.77 kB / 481 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.444e-05/0.5117, allocations: 23.86 kB / 481.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.5118, allocations: 0 / 481.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5118, allocations: 0 / 481.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.5118, allocations: 0 / 481.1 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005831/0.5124, allocations: 0.5381 MB / 481.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5124, allocations: 0 / 481.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.5125, allocations: 26.67 kB / 481.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.5126, allocations: 0 / 481.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.5126, allocations: 10.42 kB / 481.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.5126, allocations: 0 / 481.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5126, allocations: 0 / 481.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004974/0.5131, allocations: 386.2 kB / 482 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.5132, allocations: 100.8 kB / 482.1 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.5132, allocations: 13.42 kB / 482.1 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.5133, allocations: 7.375 kB / 482.1 MB, free: 11.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.5134, allocations: 11.98 kB / 482.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.5134, allocations: 12.05 kB / 482.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.888e-05/0.5135, allocations: 142.9 kB / 482.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5135, allocations: 0 / 482.3 MB, free: 11.27 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003915/0.5139, allocations: 65.3 kB / 482.4 MB, free: 11.22 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (cplxP.y,cplxP.dy) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_BE.y,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,cplxP_dig_FE.y,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,cplxP_dig_TU.y,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1) * Number of discrete states: 12 (cplxP_dig_TU.u,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y,cplxP_dig_TU.y_pre1,cplxP_dig_FE.u,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y,cplxP_dig_FE.y_pre1,cplxP_dig_BE.u,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y,cplxP_dig_BE.y_pre1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.000785/0.5147, allocations: 0.9553 MB / 483.3 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003432/0.5151, allocations: 163.9 kB / 483.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.5151, allocations: 0.8125 kB / 483.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.5152, allocations: 86.16 kB / 483.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.5155, allocations: 29 kB / 483.6 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.5176, allocations: 2.954 MB / 486.5 MB, free: 7.223 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.5178, allocations: 0.7326 MB / 487.3 MB, free: 6.465 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000121/0.518, allocations: 25.88 kB / 487.3 MB, free: 6.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.528e-05/0.5181, allocations: 50.61 kB / 487.3 MB, free: 6.418 MB / 346.7 MB Notification: Performance of SimCode: time 6.632e-06/0.5181, allocations: 8 kB / 487.3 MB, free: 6.41 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.5359, allocations: 3.924 MB / 491.3 MB, free: 2.566 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.5362, allocations: 218.8 kB / 491.5 MB, free: 2.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.319, allocations: 7.5 kB / 491.5 MB, free: 2.316 MB / 346.7 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)