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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004237/0.004237, allocations: 99.61 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 194.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06282/0.06282, allocations: 11.21 MB / 301.7 MB, free: 4.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 65.7 kB / 417.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08379/0.08555, allocations: 51.99 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.00296/0.08856, allocations: 1.84 MB / 471.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009877/0.08957, allocations: 0.5992 MB / 471.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.261e-05/0.08966, allocations: 3.938 kB / 471.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.156e-05/0.0897, allocations: 15.75 kB / 471.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.08984, allocations: 35.67 kB / 471.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004728/0.09032, allocations: 183.4 kB / 472 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002375/0.09056, allocations: 207.4 kB / 472.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.0907, allocations: 44.66 kB / 472.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.723e-05/0.09079, allocations: 87.52 kB / 472.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.09092, allocations: 103.5 kB / 472.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.937e-05/0.09097, allocations: 16 kB / 472.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002238/0.0912, allocations: 155.9 kB / 472.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.495e-05/0.09127, allocations: 59.69 kB / 472.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.734e-05/0.09137, allocations: 107.3 kB / 472.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.09174, allocations: 310.7 kB / 473.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.09176, allocations: 0 / 473.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09176, allocations: 0 / 473.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.09177, allocations: 0 / 473.1 MB, free: 11.33 MB / 350.1 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.0007919/0.09257, allocations: 0.5641 MB / 473.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.09261, allocations: 15.89 kB / 473.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.081e-05/0.09267, allocations: 50.73 kB / 473.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/0.09273, allocations: 24.8 kB / 473.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002823/0.09302, allocations: 267.8 kB / 474 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.09304, allocations: 8.375 kB / 474 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.688e-05/0.09308, allocations: 24.36 kB / 474 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.09339, allocations: 175.1 kB / 474.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.09341, allocations: 11.94 kB / 474.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.09344, allocations: 4 kB / 474.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.09345, allocations: 4 kB / 474.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.09362, allocations: 63.95 kB / 474.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008398/0.09447, allocations: 0.5159 MB / 474.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.09476, allocations: 146.2 kB / 474.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.0949, allocations: 68.77 kB / 475 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.758e-06/0.09491, allocations: 0 / 475 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.09521, allocations: 143.3 kB / 475.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.382e-06/0.09522, allocations: 0 / 475.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005317/0.09576, allocations: 263.6 kB / 475.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.942e-05/0.09587, allocations: 170.2 kB / 475.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.09613, allocations: 262.6 kB / 475.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.09616, allocations: 33.7 kB / 475.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.09628, allocations: 152.5 kB / 476 MB, free: 8.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.476e-05/0.09634, allocations: 71.47 kB / 476.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.326e-05/0.09643, allocations: 57.98 kB / 476.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.09657, allocations: 334.8 kB / 476.5 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.09669, allocations: 56.25 kB / 476.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.09691, allocations: 181.7 kB / 476.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.09727, allocations: 241.5 kB / 476.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.09728, allocations: 0 / 476.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004175/0.0977, allocations: 269.1 kB / 477.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.09773, allocations: 8 kB / 477.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.09774, allocations: 4.469 kB / 477.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.09776, allocations: 8 kB / 477.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.098, allocations: 63.84 kB / 477.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.09802, allocations: 11.88 kB / 477.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.09819, allocations: 31.83 kB / 477.3 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.914e-05/0.09822, allocations: 16 kB / 477.3 MB, free: 6.684 MB / 350.1 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 (complexPoles_dig.y,$PRE.complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1,$PRE.complexPoles_dig.y_pre1,lLag_dig.y,$PRE.lLag_dig.y,fO_dig.y,$PRE.fO_dig.y,int_dig.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.09839, allocations: 142.3 kB / 477.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.09843, allocations: 27.86 kB / 477.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.09849, allocations: 30.17 kB / 477.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.0985, allocations: 4 kB / 477.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.09851, allocations: 7.875 kB / 477.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.09853, allocations: 3.984 kB / 477.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000682/0.09921, allocations: 0.5452 MB / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.09923, allocations: 0 / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.09945, allocations: 39.86 kB / 478.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.09946, allocations: 4 kB / 478.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.09949, allocations: 11.92 kB / 478.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.0995, allocations: 4 kB / 478.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.0995, allocations: 0 / 478.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005602/0.1001, allocations: 386.2 kB / 478.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.767e-05/0.1001, allocations: 96.95 kB / 478.6 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.1002, allocations: 12 kB / 478.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.1004, allocations: 19.98 kB / 478.7 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.86e-05/0.1004, allocations: 7.984 kB / 478.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.1004, allocations: 16.11 kB / 478.7 MB, free: 5.242 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001722/0.1006, allocations: 182 kB / 478.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1006, allocations: 0 / 478.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.101, allocations: 79.86 kB / 478.9 MB, free: 4.984 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009716/0.1019, allocations: 0.9941 MB / 479.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.1023, allocations: 174.2 kB / 480.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1023, allocations: 0.9375 kB / 480.1 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.1024, allocations: 71.91 kB / 480.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.1028, allocations: 55.22 kB / 480.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003524/0.1063, allocations: 2.898 MB / 483.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003647/0.1067, allocations: 0.748 MB / 483.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.373e-05/0.1068, allocations: 26.28 kB / 483.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.1069, allocations: 83.41 kB / 484 MB, free: 15.73 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1069, allocations: 0 / 484 MB, free: 15.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.1359, allocations: 5.7 MB / 489.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.064/9.2, allocations: 15.28 kB / 489.7 MB, free: 10.15 MB / 366.1 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/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)