Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.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.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex",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.005036/0.005036, allocations: 99.95 kB / 15.73 MB, free: 6.066 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.001094/0.001094, allocations: 189.4 kB / 16.67 MB, free: 5.977 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.6 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.06093/0.06093, allocations: 10.75 MB / 280.7 MB, free: 10.39 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.001516/0.001516, allocations: 68.47 kB / 390.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.373, allocations: 49.02 MB / 439.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002666/0.3757, allocations: 1.666 MB / 441 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007172/0.3765, allocations: 372.8 kB / 441.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.365e-05/0.3765, allocations: 8.438 kB / 441.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.762e-05/0.3766, allocations: 13.03 kB / 441.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.3767, allocations: 21.41 kB / 441.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.3771, allocations: 110.6 kB / 441.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.3774, allocations: 158.2 kB / 441.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.3775, allocations: 28.73 kB / 441.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.899e-05/0.3776, allocations: 68.88 kB / 441.8 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.3778, allocations: 85.22 kB / 441.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.3778, allocations: 14.28 kB / 441.9 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.3779, allocations: 78.75 kB / 442 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.379e-05/0.378, allocations: 39.45 kB / 442 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.6e-05/0.3781, allocations: 80.55 kB / 442.1 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.3783, allocations: 206.2 kB / 442.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3784, allocations: 0 / 442.3 MB, free: 3.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3784, allocations: 5.031 kB / 442.3 MB, free: 3.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3784, allocations: 4 kB / 442.3 MB, free: 3.215 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006182/0.379, allocations: 488.8 kB / 442.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.3791, allocations: 14.39 kB / 442.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.366e-05/0.3791, allocations: 45.67 kB / 442.8 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.3792, allocations: 23.48 kB / 442.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.3794, allocations: 236.6 kB / 443.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.3794, allocations: 6.672 kB / 443.1 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.3794, allocations: 19.55 kB / 443.1 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002994/0.3797, allocations: 172.6 kB / 443.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.3798, allocations: 0 / 443.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.05e-05/0.3798, allocations: 2.734 kB / 443.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.3798, allocations: 2.75 kB / 443.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.38, allocations: 60.64 kB / 443.3 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007286/0.3807, allocations: 475.1 kB / 443.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.381, allocations: 126.8 kB / 443.9 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.3811, allocations: 81.91 kB / 444 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.3811, allocations: 2.531 kB / 444 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003255/0.3815, allocations: 142 kB / 444.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.3815, allocations: 0 / 444.2 MB, free: 1.809 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005558/0.382, allocations: 256.1 kB / 444.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/0.3821, allocations: 169.3 kB / 444.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.3823, allocations: 196.1 kB / 444.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.3823, allocations: 34.34 kB / 444.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.3824, allocations: 122.6 kB / 444.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.403e-05/0.3825, allocations: 60.36 kB / 445 MB, free: 1.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.62e-05/0.3825, allocations: 56.22 kB / 445 MB, free: 1.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.86e-05/0.3826, allocations: 333.7 kB / 445.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3827, allocations: 62.7 kB / 445.4 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.3829, allocations: 164.2 kB / 445.6 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.3832, allocations: 226.8 kB / 445.8 MB, free: 476 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3832, allocations: 5.125 kB / 445.8 MB, free: 472 kB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003867/0.3836, allocations: 250.3 kB / 446 MB, free: 352 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3837, allocations: 6.062 kB / 446.1 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3837, allocations: 3.219 kB / 446.1 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.3837, allocations: 5.375 kB / 446.1 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.3839, allocations: 51 kB / 446.1 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3839, allocations: 7.984 kB / 446.1 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.3841, allocations: 31.2 kB / 446.1 MB, free: 320 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.3841, allocations: 9.938 kB / 446.2 MB, free: 320 kB / 318.1 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.cplxP_dig_TU.u_pre1,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,$PRE.cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_TU.y,$PRE.cplxP_dig_TU.y,cplxP_dig_FE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.0001601/0.3843, allocations: 151.8 kB / 446.3 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3843, allocations: 18.72 kB / 446.3 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.894e-05/0.3844, allocations: 24.98 kB / 446.3 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.3844, allocations: 1.25 kB / 446.4 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3844, allocations: 1.281 kB / 446.4 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3844, allocations: 1.547 kB / 446.4 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007089/0.3851, allocations: 0.5296 MB / 446.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3851, allocations: 1.031 kB / 446.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.3853, allocations: 24.52 kB / 446.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3853, allocations: 2.047 kB / 446.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.3853, allocations: 13.44 kB / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3853, allocations: 0 / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3853, allocations: 1.828 kB / 446.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.3859, allocations: 374.4 kB / 447.3 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.823e-05/0.386, allocations: 95.94 kB / 447.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.491e-05/0.3861, allocations: 13.58 kB / 447.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.3862, allocations: 11.95 kB / 447.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.3862, allocations: 21.94 kB / 447.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.3863, allocations: 7.5 kB / 447.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001243/0.3864, allocations: 145.6 kB / 447.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3864, allocations: 3.938 kB / 447.6 MB, free: 15.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.3868, allocations: 55.17 kB / 447.6 MB, free: 15.29 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (cplxP.y,cplxP.dy) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_BE.y,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,cplxP_dig_FE.y,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,cplxP_dig_TU.y,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1) * Number of discrete states: 12 (cplxP_dig_TU.u,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y,cplxP_dig_TU.y_pre1,cplxP_dig_FE.u,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y,cplxP_dig_FE.y_pre1,cplxP_dig_BE.u,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y,cplxP_dig_BE.y_pre1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.00087/0.3876, allocations: 0.954 MB / 448.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.388, allocations: 160.5 kB / 448.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.388, allocations: 0 / 448.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.3882, allocations: 74.88 kB / 448.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.3885, allocations: 43 kB / 448.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.3913, allocations: 2.38 MB / 451.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.3916, allocations: 0.7236 MB / 452 MB, free: 11.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.3917, allocations: 29.39 kB / 452 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.77e-05/0.3918, allocations: 50.34 kB / 452 MB, free: 11.92 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3918, allocations: 0 / 452 MB, free: 11.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02528/0.4171, allocations: 4.422 MB / 456.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.288/8.705, allocations: 14.38 kB / 456.5 MB, free: 9.668 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)