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 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) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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.007667/0.007667, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.00188/0.00188, allocations: 193.5 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 222.5 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06016/0.06016, allocations: 10.76 MB / 280.7 MB, free: 10.37 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 75.91 kB / 390.3 MB, free: 5.504 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2565, allocations: 49.02 MB / 439.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.002988/0.2595, allocations: 1.835 MB / 441.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.2606, allocations: 0.603 MB / 441.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.876e-05/0.2606, allocations: 1.25 kB / 441.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.63e-05/0.2607, allocations: 17.25 kB / 441.8 MB, free: 3.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.2609, allocations: 39.42 kB / 441.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.2614, allocations: 185.7 kB / 442 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.2617, allocations: 206.6 kB / 442.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.2619, allocations: 51.17 kB / 442.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.262, allocations: 85.78 kB / 442.4 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.2622, allocations: 103.8 kB / 442.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.843e-05/0.2622, allocations: 17.22 kB / 442.5 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002958/0.2625, allocations: 157.9 kB / 442.7 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.2626, allocations: 58.06 kB / 442.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.2627, allocations: 99.58 kB / 442.8 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005014/0.2632, allocations: 309.1 kB / 443.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2632, allocations: 8 kB / 443.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.576e-06/0.2632, allocations: 0.5625 kB / 443.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.2632, allocations: 0 / 443.1 MB, free: 2.703 MB / 318.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.0008796/0.2641, allocations: 0.563 MB / 443.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.2642, allocations: 13.48 kB / 443.7 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.451e-05/0.2642, allocations: 46.05 kB / 443.7 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.2643, allocations: 35.11 kB / 443.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.2646, allocations: 265.6 kB / 444 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.2646, allocations: 10.62 kB / 444 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.2646, allocations: 20.59 kB / 444.1 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003011/0.2649, allocations: 172.3 kB / 444.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.265, allocations: 3.938 kB / 444.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.265, allocations: 7.359 kB / 444.2 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.265, allocations: 6.094 kB / 444.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001712/0.2652, allocations: 65.77 kB / 444.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008619/0.266, allocations: 0.5152 MB / 444.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.2663, allocations: 146.2 kB / 445 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.2665, allocations: 63.3 kB / 445 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.2665, allocations: 1.953 kB / 445 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.2668, allocations: 143.4 kB / 445.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.014e-06/0.2668, allocations: 0 / 445.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.000554/0.2674, allocations: 267.5 kB / 445.4 MB, free: 1.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.2674, allocations: 163.7 kB / 445.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.2677, allocations: 262.8 kB / 445.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.2677, allocations: 38.17 kB / 445.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.2678, allocations: 151.6 kB / 446 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.825e-05/0.2678, allocations: 62.19 kB / 446.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.2679, allocations: 58.5 kB / 446.2 MB, free: 500 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.758e-05/0.268, allocations: 337.3 kB / 446.5 MB, free: 168 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.2681, allocations: 54.14 kB / 446.5 MB, free: 152 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2683, allocations: 185.6 kB / 446.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003489/0.2687, allocations: 241.7 kB / 447 MB, free: 15.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2687, allocations: 1 kB / 447 MB, free: 15.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004515/0.2692, allocations: 272.1 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2692, allocations: 7.703 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.2692, allocations: 3.719 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.2692, allocations: 5.625 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.2695, allocations: 59.05 kB / 447.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.2695, allocations: 18.11 kB / 447.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.2697, allocations: 28.36 kB / 447.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2697, allocations: 10.72 kB / 447.4 MB, free: 15.6 MB / 334.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.0001901/0.2699, allocations: 157.6 kB / 447.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.54e-05/0.27, allocations: 29.7 kB / 447.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.27, allocations: 28.09 kB / 447.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2701, allocations: 5.953 kB / 447.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2701, allocations: 5.312 kB / 447.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.2701, allocations: 0.8906 kB / 447.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007478/0.2708, allocations: 0.5446 MB / 448.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.2708, allocations: 0 / 448.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002199/0.2711, allocations: 34.86 kB / 448.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.2711, allocations: 1.562 kB / 448.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.2711, allocations: 22.14 kB / 448.2 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.2711, allocations: 0 / 448.2 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2711, allocations: 5.781 kB / 448.2 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006188/0.2718, allocations: 385.2 kB / 448.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.2718, allocations: 106 kB / 448.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.2719, allocations: 17.59 kB / 448.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.2721, allocations: 7.469 kB / 448.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.812e-05/0.2721, allocations: 13.7 kB / 448.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.2722, allocations: 13.11 kB / 448.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.2724, allocations: 184.9 kB / 448.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2724, allocations: 0 / 448.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004235/0.2728, allocations: 78.56 kB / 449 MB, free: 14.52 MB / 334.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.001003/0.2738, allocations: 0.9828 MB / 450 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.2742, allocations: 168.8 kB / 450.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2743, allocations: 0.75 kB / 450.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001644/0.2744, allocations: 72.89 kB / 450.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.2749, allocations: 67.64 kB / 450.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.2787, allocations: 2.894 MB / 453.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.279, allocations: 0.7435 MB / 453.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.2791, allocations: 30 kB / 453.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.2792, allocations: 78.53 kB / 454 MB, free: 10.65 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2792, allocations: 0 / 454 MB, free: 10.65 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03064/0.3099, allocations: 5.716 MB / 459.7 MB, free: 7.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.875/8.185, allocations: 1.812 kB / 459.7 MB, free: 7.738 MB / 334.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)