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.008264/0.008263, 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.07126/0.07126, allocations: 10.73 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.699/1.699, 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.0008562/0.0008562, allocations: 80.05 kB / 285.9 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003558, allocations: 12 kB / 346.5 MB, free: 5.078 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1269, allocations: 49.98 MB / 396.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3662/0.4932, allocations: 78.65 MB / 475.1 MB, free: 16.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.4935, allocations: 75.12 kB / 475.2 MB, free: 16.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01301/0.5066, allocations: 5.201 MB / 480.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5066, allocations: 0 / 480.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.5066, allocations: 8 kB / 480.4 MB, free: 13.3 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007183/0.5074, allocations: 0.5367 MB / 481 MB, free: 12.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.5074, allocations: 8.031 kB / 481 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.947e-05/0.5075, allocations: 49.42 kB / 481 MB, free: 12.67 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.847e-05/0.5076, allocations: 31.61 kB / 481.1 MB, free: 12.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.5078, allocations: 268.4 kB / 481.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.5079, allocations: 7.844 kB / 481.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.5079, allocations: 24.88 kB / 481.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.5082, allocations: 174.8 kB / 481.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.5082, allocations: 0 / 481.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.5082, allocations: 7.547 kB / 481.5 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.5083, allocations: 11.95 kB / 481.5 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.5084, allocations: 66.66 kB / 481.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008368/0.5093, allocations: 0.5209 MB / 482.1 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.5095, allocations: 146 kB / 482.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.5095, allocations: 0 / 482.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002678/0.5098, allocations: 144.2 kB / 482.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.5098, allocations: 0 / 482.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.000488/0.5103, allocations: 277 kB / 482.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.5104, allocations: 158.2 kB / 482.8 MB, free: 10.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.5106, allocations: 229.4 kB / 483.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.5106, allocations: 36.95 kB / 483.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.5107, allocations: 149.9 kB / 483.2 MB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.821e-05/0.5108, allocations: 61.61 kB / 483.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-06/0.5108, allocations: 7.312 kB / 483.3 MB, free: 10.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.5109, allocations: 345.5 kB / 483.6 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.511, allocations: 56.69 kB / 483.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.5112, allocations: 188.4 kB / 483.9 MB, free: 9.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.5113, allocations: 85.55 kB / 484 MB, free: 9.91 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5113, allocations: 0 / 484 MB, free: 9.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003443/0.5117, allocations: 267 kB / 484.2 MB, free: 9.695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.5117, allocations: 8 kB / 484.2 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.5117, allocations: 8.406 kB / 484.2 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.5117, allocations: 8 kB / 484.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.512, allocations: 55.91 kB / 484.3 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.512, allocations: 11.92 kB / 484.3 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.5121, allocations: 34.17 kB / 484.3 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.5122, allocations: 12 kB / 484.4 MB, free: 9.566 MB / 346.7 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 ($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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000168/0.5123, allocations: 144.8 kB / 484.5 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.04e-05/0.5124, allocations: 35.56 kB / 484.5 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.408e-05/0.5124, allocations: 25.23 kB / 484.6 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5125, allocations: 4.875 kB / 484.6 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.5125, allocations: 0 / 484.6 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.5125, allocations: 0 / 484.6 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000554/0.513, allocations: 0.5564 MB / 485.1 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.513, allocations: 4 kB / 485.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.5133, allocations: 31.98 kB / 485.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.5133, allocations: 7.484 kB / 485.2 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.5133, allocations: 7.422 kB / 485.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5133, allocations: 0 / 485.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.5133, allocations: 3.984 kB / 485.2 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004737/0.5138, allocations: 407.5 kB / 485.6 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.5139, allocations: 96.83 kB / 485.7 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.5139, allocations: 11.73 kB / 485.7 MB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.5141, allocations: 7.188 kB / 485.7 MB, free: 8.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.5141, allocations: 19.84 kB / 485.7 MB, free: 8.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.5141, allocations: 4 kB / 485.7 MB, free: 8.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001339/0.5143, allocations: 186.6 kB / 485.9 MB, free: 8.172 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5143, allocations: 4 kB / 485.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004254/0.5147, allocations: 102.8 kB / 486 MB, free: 8.074 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) * 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 (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.0008245/0.5155, allocations: 1.003 MB / 487 MB, free: 7.125 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.5159, allocations: 174.6 kB / 487.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5159, allocations: 0 / 487.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.5161, allocations: 74.47 kB / 487.2 MB, free: 6.938 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.5164, allocations: 52.39 kB / 487.3 MB, free: 6.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.5195, allocations: 3.854 MB / 491.1 MB, free: 3.152 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.5197, allocations: 0.7521 MB / 491.9 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000122/0.5198, allocations: 30.28 kB / 491.9 MB, free: 2.344 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.497e-05/0.5199, allocations: 79.66 kB / 492 MB, free: 2.312 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.5199, allocations: 0 / 492 MB, free: 2.312 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.5414, allocations: 5.144 MB / 497.1 MB, free: 13.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004154/0.5419, allocations: 203 kB / 497.3 MB, free: 12.99 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.581, allocations: 0 / 497.3 MB, free: 12.99 MB / 362.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)