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.004752/0.004751, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001206/0.001206, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1666/0.1666, allocations: 11.18 MB / 301.7 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002552/0.002552, allocations: 59.91 kB / 417.3 MB, free: 6.008 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2404, allocations: 51.98 MB / 469.3 MB, free: 16.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.002667/0.2431, allocations: 1.85 MB / 471.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009402/0.2441, allocations: 0.6023 MB / 471.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.2442, allocations: 1.125 kB / 471.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.092e-05/0.2442, allocations: 17.02 kB / 471.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.2444, allocations: 35.03 kB / 471.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.2449, allocations: 179.9 kB / 472 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000223/0.2451, allocations: 211.7 kB / 472.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.2452, allocations: 46.98 kB / 472.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.713e-05/0.2453, allocations: 84.16 kB / 472.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.2454, allocations: 103.5 kB / 472.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.2455, allocations: 18.88 kB / 472.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002216/0.2457, allocations: 157.1 kB / 472.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.461e-05/0.2458, allocations: 54.5 kB / 472.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.223e-05/0.2458, allocations: 103.7 kB / 472.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003515/0.2462, allocations: 302.3 kB / 473.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2462, allocations: 0.6094 kB / 473.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2462, allocations: 0 / 473.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.2462, allocations: 4 kB / 473.1 MB, free: 14.25 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.0006704/0.2469, allocations: 0.5645 MB / 473.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.2469, allocations: 13.11 kB / 473.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.607e-05/0.247, allocations: 46.03 kB / 473.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/0.247, allocations: 26.89 kB / 473.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/0.2473, allocations: 273.6 kB / 474 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.2473, allocations: 14.31 kB / 474 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.2473, allocations: 16.23 kB / 474 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.2476, allocations: 185.9 kB / 474.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.2476, allocations: 3.938 kB / 474.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.2477, allocations: 3 kB / 474.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.2477, allocations: 5.188 kB / 474.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.2478, allocations: 72.47 kB / 474.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007602/0.2486, allocations: 0.5102 MB / 474.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000268/0.2489, allocations: 142 kB / 474.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.249, allocations: 60.45 kB / 475 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.249, allocations: 1.375 kB / 475 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.2493, allocations: 153.6 kB / 475.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.2493, allocations: 0 / 475.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004846/0.2498, allocations: 263 kB / 475.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.2499, allocations: 163.7 kB / 475.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.2501, allocations: 268.1 kB / 475.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.2501, allocations: 37.98 kB / 475.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.477e-05/0.2502, allocations: 144.7 kB / 476 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.2502, allocations: 67.2 kB / 476.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.89e-05/0.2503, allocations: 64.44 kB / 476.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.848e-05/0.2503, allocations: 337.2 kB / 476.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.2504, allocations: 53.75 kB / 476.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.2506, allocations: 190.6 kB / 476.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.2509, allocations: 244.5 kB / 476.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2509, allocations: 1.094 kB / 476.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003851/0.2513, allocations: 270.2 kB / 477.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.2513, allocations: 6.312 kB / 477.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.2513, allocations: 3.812 kB / 477.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2513, allocations: 9.359 kB / 477.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.2516, allocations: 54.52 kB / 477.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.2516, allocations: 18.42 kB / 477.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.2517, allocations: 30.78 kB / 477.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.2518, allocations: 10.78 kB / 477.3 MB, free: 10.91 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.0001169/0.2519, allocations: 154.5 kB / 477.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.2519, allocations: 23.86 kB / 477.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.614e-05/0.252, allocations: 29.08 kB / 477.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.252, allocations: 6.25 kB / 477.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.252, allocations: 7.938 kB / 477.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.252, allocations: 1.188 kB / 477.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005431/0.2526, allocations: 0.5394 MB / 478.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2526, allocations: 1.156 kB / 478.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002108/0.2528, allocations: 38.25 kB / 478.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.2528, allocations: 1.094 kB / 478.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.2528, allocations: 10.81 kB / 478.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2528, allocations: 1.375 kB / 478.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2528, allocations: 0 / 478.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004894/0.2533, allocations: 391.9 kB / 478.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.2534, allocations: 100.5 kB / 478.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.21e-05/0.2534, allocations: 15.2 kB / 478.6 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.2536, allocations: 5.25 kB / 478.6 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.239e-05/0.2536, allocations: 22.38 kB / 478.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.2537, allocations: 5.406 kB / 478.7 MB, free: 9.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.2538, allocations: 194.6 kB / 478.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2538, allocations: 0 / 478.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.2542, allocations: 75.83 kB / 478.9 MB, free: 9.707 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.0007318/0.2549, allocations: 0.9859 MB / 479.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003302/0.2553, allocations: 168.5 kB / 480.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2553, allocations: 0 / 480.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.2554, allocations: 75.36 kB / 480.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.2558, allocations: 59.86 kB / 480.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.2587, allocations: 2.889 MB / 483.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.2588, allocations: 0.7475 MB / 483.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.2589, allocations: 34.12 kB / 483.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.803e-05/0.259, allocations: 82.78 kB / 484 MB, free: 5.766 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.259, allocations: 0 / 484 MB, free: 5.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.2854, allocations: 5.723 MB / 489.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.152/8.437, allocations: 1.75 kB / 489.7 MB, free: 2.938 MB / 350.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_Basic.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)