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.006993/0.006993, allocations: 101 kB / 15.73 MB, free: 5.949 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.001387/0.001387, allocations: 190 kB / 16.67 MB, free: 5.871 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.637/1.637, allocations: 205.1 MB / 222.6 MB, free: 4.465 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06913/0.06913, allocations: 10.75 MB / 280.7 MB, free: 10.4 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.002367/0.002367, allocations: 76.5 kB / 390.4 MB, free: 5.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3114, allocations: 49.01 MB / 439.4 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.002827/0.3143, allocations: 1.855 MB / 441.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.3153, allocations: 0.6138 MB / 441.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.72e-05/0.3154, allocations: 1.375 kB / 441.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.516e-05/0.3154, allocations: 17.53 kB / 441.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.3156, allocations: 43.83 kB / 441.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006074/0.3162, allocations: 179.7 kB / 442.1 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002741/0.3165, allocations: 207.2 kB / 442.3 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.3166, allocations: 32.97 kB / 442.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.588e-05/0.3167, allocations: 88.75 kB / 442.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.3168, allocations: 103.7 kB / 442.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.748e-05/0.3169, allocations: 18.03 kB / 442.5 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.3171, allocations: 161.6 kB / 442.7 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/0.3172, allocations: 53.59 kB / 442.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.132e-05/0.3173, allocations: 91.53 kB / 442.8 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004225/0.3177, allocations: 312.6 kB / 443.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3177, allocations: 1.375 kB / 443.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3177, allocations: 0 / 443.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3177, allocations: 0 / 443.1 MB, free: 2.719 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.0007734/0.3185, allocations: 0.5718 MB / 443.7 MB, free: 2.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.3185, allocations: 13.48 kB / 443.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.372e-05/0.3186, allocations: 45.67 kB / 443.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.3187, allocations: 31.02 kB / 443.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.3189, allocations: 265.9 kB / 444 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.3189, allocations: 10.59 kB / 444 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.319, allocations: 19.97 kB / 444.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003208/0.3193, allocations: 175.9 kB / 444.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.3193, allocations: 7.875 kB / 444.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.206e-05/0.3193, allocations: 6.344 kB / 444.2 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.3193, allocations: 2.75 kB / 444.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.3195, allocations: 66.44 kB / 444.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008515/0.3204, allocations: 0.5157 MB / 444.8 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.3207, allocations: 132.9 kB / 445 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.3208, allocations: 64.38 kB / 445 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.3208, allocations: 6.438 kB / 445 MB, free: 1.285 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/0.3211, allocations: 139.1 kB / 445.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.3211, allocations: 0 / 445.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005624/0.3217, allocations: 271.1 kB / 445.4 MB, free: 1.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.3217, allocations: 164.9 kB / 445.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002377/0.322, allocations: 267.1 kB / 445.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.322, allocations: 33.73 kB / 445.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/0.3221, allocations: 151.5 kB / 446 MB, free: 0.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.3221, allocations: 65.75 kB / 446.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.756e-05/0.3222, allocations: 58.17 kB / 446.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/0.3223, allocations: 338.1 kB / 446.5 MB, free: 172 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.3224, allocations: 52.8 kB / 446.5 MB, free: 156 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.3226, allocations: 186.6 kB / 446.7 MB, free: 15.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003834/0.323, allocations: 240.9 kB / 447 MB, free: 15.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.323, allocations: 0.9688 kB / 447 MB, free: 15.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004775/0.3235, allocations: 273.8 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3235, allocations: 11.12 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.3235, allocations: 3.922 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.3235, allocations: 5.531 kB / 447.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.3238, allocations: 57.97 kB / 447.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.3238, allocations: 11.14 kB / 447.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.324, allocations: 28.34 kB / 447.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.68e-05/0.324, allocations: 14.5 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.000234/0.3243, allocations: 154 kB / 447.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.3243, allocations: 28.67 kB / 447.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.279e-05/0.3244, allocations: 28.33 kB / 447.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.3244, allocations: 2.141 kB / 447.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.3244, allocations: 5.375 kB / 447.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3244, allocations: 1.453 kB / 447.6 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008723/0.3253, allocations: 0.5386 MB / 448.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.3253, allocations: 8.547 kB / 448.1 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.3255, allocations: 44.34 kB / 448.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3255, allocations: 1.281 kB / 448.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.3255, allocations: 9.891 kB / 448.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3255, allocations: 0 / 448.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3255, allocations: 1.25 kB / 448.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.3262, allocations: 386.4 kB / 448.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.655e-05/0.3263, allocations: 108.3 kB / 448.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.476e-05/0.3264, allocations: 21.38 kB / 448.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.3266, allocations: 12.7 kB / 448.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.834e-05/0.3266, allocations: 11.09 kB / 448.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.3266, allocations: 11.05 kB / 448.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002303/0.3269, allocations: 185.8 kB / 448.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3269, allocations: 0 / 448.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004405/0.3273, allocations: 80.17 kB / 449 MB, free: 14.53 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.001184/0.3285, allocations: 0.9843 MB / 450 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004613/0.329, allocations: 155.8 kB / 450.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.329, allocations: 5.156 kB / 450.1 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.3291, allocations: 67.78 kB / 450.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/0.3296, allocations: 55.66 kB / 450.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.3335, allocations: 2.886 MB / 453.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.3339, allocations: 0.7467 MB / 453.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.334, allocations: 38.75 kB / 453.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.3342, allocations: 78.53 kB / 454 MB, free: 10.67 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3342, allocations: 0 / 454 MB, free: 10.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.3681, allocations: 5.719 MB / 459.7 MB, free: 7.762 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.415/8.783, allocations: 5.281 kB / 459.7 MB, free: 7.758 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)