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 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.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.007608/0.007608, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001353/0.001353, allocations: 194.8 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.2441/0.2441, allocations: 11.18 MB / 301.7 MB, free: 1.344 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.91 kB / 417.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2722, allocations: 51.97 MB / 469.3 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002662/0.2749, allocations: 1.669 MB / 471 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000714/0.2757, allocations: 369.1 kB / 471.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.011e-05/0.2757, allocations: 3.938 kB / 471.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.401e-05/0.2758, allocations: 18.09 kB / 471.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.2759, allocations: 20.2 kB / 471.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003639/0.2763, allocations: 118.6 kB / 471.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.2765, allocations: 158.1 kB / 471.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.2766, allocations: 28.47 kB / 471.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.06e-05/0.2767, allocations: 72.48 kB / 471.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.2768, allocations: 81.78 kB / 471.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.2769, allocations: 13.81 kB / 471.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.277, allocations: 82.53 kB / 471.9 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.396e-05/0.2771, allocations: 39.22 kB / 472 MB, free: 15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.947e-05/0.2771, allocations: 76.39 kB / 472 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002438/0.2774, allocations: 198.7 kB / 472.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2774, allocations: 4 kB / 472.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2774, allocations: 0 / 472.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2774, allocations: 9.281 kB / 472.3 MB, free: 14.87 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0006111/0.278, allocations: 491.3 kB / 472.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.2781, allocations: 14.58 kB / 472.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.305e-05/0.2782, allocations: 41.25 kB / 472.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.282e-05/0.2782, allocations: 18.34 kB / 472.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.2784, allocations: 237.5 kB / 473 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.2785, allocations: 9.922 kB / 473 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.2785, allocations: 19.95 kB / 473.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.2788, allocations: 172.6 kB / 473.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.2788, allocations: 0 / 473.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.2788, allocations: 7.688 kB / 473.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2788, allocations: 2.438 kB / 473.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.279, allocations: 60.03 kB / 473.3 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006733/0.2797, allocations: 473 kB / 473.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.2799, allocations: 122 kB / 473.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.2801, allocations: 77.69 kB / 474 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.2801, allocations: 1.594 kB / 474 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.2804, allocations: 141.1 kB / 474.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.736e-06/0.2804, allocations: 0 / 474.1 MB, free: 13.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005/0.2809, allocations: 267 kB / 474.4 MB, free: 13.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.281, allocations: 167.7 kB / 474.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.2811, allocations: 205.9 kB / 474.7 MB, free: 13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.2812, allocations: 33.83 kB / 474.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.888e-05/0.2812, allocations: 124.7 kB / 474.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/0.2813, allocations: 59.78 kB / 474.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.93e-05/0.2813, allocations: 58.27 kB / 475 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.271e-05/0.2814, allocations: 336.3 kB / 475.3 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.2815, allocations: 50.38 kB / 475.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.2817, allocations: 164.4 kB / 475.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.2819, allocations: 224.8 kB / 475.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.2819, allocations: 1.375 kB / 475.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003588/0.2823, allocations: 257.3 kB / 476 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.2823, allocations: 7.594 kB / 476 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.974e-06/0.2823, allocations: 2.688 kB / 476 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.2824, allocations: 5.562 kB / 476 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000213/0.2826, allocations: 51.33 kB / 476.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.2826, allocations: 8.547 kB / 476.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.2827, allocations: 24.36 kB / 476.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.2827, allocations: 13.88 kB / 476.1 MB, free: 11.86 MB / 350.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.0001406/0.2829, allocations: 158.9 kB / 476.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.2829, allocations: 24.92 kB / 476.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.372e-05/0.283, allocations: 22.34 kB / 476.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.283, allocations: 2.25 kB / 476.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.283, allocations: 0 / 476.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.283, allocations: 5.078 kB / 476.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.2835, allocations: 0.5226 MB / 476.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2835, allocations: 5.188 kB / 476.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.2837, allocations: 25.86 kB / 476.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2837, allocations: 1.125 kB / 476.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.2837, allocations: 6.547 kB / 476.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.2837, allocations: 5.625 kB / 476.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2837, allocations: 3.938 kB / 476.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005773/0.2843, allocations: 376.5 kB / 477.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.2844, allocations: 98.22 kB / 477.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.2844, allocations: 8.969 kB / 477.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.2845, allocations: 12.14 kB / 477.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.815e-05/0.2846, allocations: 17.27 kB / 477.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.2847, allocations: 10.2 kB / 477.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.2848, allocations: 144.7 kB / 477.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2848, allocations: 0 / 477.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004035/0.2852, allocations: 53.81 kB / 477.6 MB, free: 10.71 MB / 350.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.0009651/0.2862, allocations: 0.9503 MB / 478.5 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004255/0.2866, allocations: 161.4 kB / 478.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2866, allocations: 0.9375 kB / 478.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.2868, allocations: 71.58 kB / 478.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003835/0.2872, allocations: 39.94 kB / 478.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.2897, allocations: 2.39 MB / 481.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.2899, allocations: 0.7267 MB / 481.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.169e-05/0.29, allocations: 26.22 kB / 482 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.721e-05/0.2901, allocations: 52.48 kB / 482 MB, free: 7.098 MB / 350.1 MB Notification: Performance of SimCode: time 9.41e-07/0.2901, allocations: 0 / 482 MB, free: 7.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.3211, allocations: 4.424 MB / 486.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/8.535, allocations: 8.797 kB / 486.4 MB, free: 4.914 MB / 350.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)