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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001367/0.001367, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05968/0.05968, allocations: 10.66 MB / 23.92 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.2 MB / 232.1 MB, free: 12.83 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008563/0.0008563, allocations: 93.08 kB / 282.6 MB, free: 13.59 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.965e-05/3.967e-05, allocations: 0 / 340.6 MB, free: 3.527 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2726, allocations: 49.98 MB / 390.6 MB, free: 35.71 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09709/0.3697, allocations: 77.56 MB / 468.1 MB, free: 6.043 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.37, allocations: 79.95 kB / 468.2 MB, free: 5.965 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.00784/0.3779, allocations: 3.049 MB / 471.3 MB, free: 2.906 MB / 346.8 MB Notification: Performance of FrontEnd: time 4.298e-06/0.3779, allocations: 0 / 471.3 MB, free: 2.906 MB / 346.8 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.3779, allocations: 7.938 kB / 471.3 MB, free: 2.898 MB / 346.8 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.0005832/0.3785, allocations: 449.9 kB / 471.7 MB, free: 2.41 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.3786, allocations: 8.031 kB / 471.7 MB, free: 2.402 MB / 346.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.952e-05/0.3786, allocations: 42.55 kB / 471.7 MB, free: 2.352 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.633e-05/0.3787, allocations: 19.77 kB / 471.8 MB, free: 2.332 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.379, allocations: 246.4 kB / 472 MB, free: 2.051 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.379, allocations: 8.188 kB / 472 MB, free: 2.043 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.3791, allocations: 16 kB / 472 MB, free: 2.027 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.3794, allocations: 161.8 kB / 472.2 MB, free: 1.852 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.3794, allocations: 3.938 kB / 472.2 MB, free: 1.848 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.3794, allocations: 4 kB / 472.2 MB, free: 1.844 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.3794, allocations: 4 kB / 472.2 MB, free: 1.84 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.3795, allocations: 52.55 kB / 472.3 MB, free: 1.789 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007301/0.3803, allocations: 465.4 kB / 472.7 MB, free: 1.285 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.3805, allocations: 118.7 kB / 472.8 MB, free: 1.16 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.3806, allocations: 68.84 kB / 472.9 MB, free: 1.09 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.3807, allocations: 0 / 472.9 MB, free: 1.09 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.3809, allocations: 139.5 kB / 473 MB, free: 0.9414 MB / 346.8 MB Notification: Performance of pre-optimization done (n=20): time 5.1e-06/0.3809, allocations: 0 / 473 MB, free: 0.9414 MB / 346.8 MB Notification: Performance of matching and sorting (n=20): time 0.0003963/0.3813, allocations: 198.7 kB / 473.2 MB, free: 0.7422 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.3815, allocations: 166.2 kB / 473.4 MB, free: 0.543 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.3816, allocations: 177.6 kB / 473.6 MB, free: 364 kB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.3817, allocations: 33.7 kB / 473.6 MB, free: 324 kB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 9.362e-05/0.3818, allocations: 132.3 kB / 473.7 MB, free: 188 kB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.3818, allocations: 55.25 kB / 473.8 MB, free: 132 kB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.002e-05/0.3818, allocations: 8 kB / 473.8 MB, free: 124 kB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.382, allocations: 334.8 kB / 474.1 MB, free: 15.79 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.116e-05/0.3821, allocations: 40.28 kB / 474.1 MB, free: 15.74 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.3823, allocations: 164.8 kB / 474.3 MB, free: 15.53 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000132/0.3824, allocations: 69.69 kB / 474.4 MB, free: 15.46 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3825, allocations: 0 / 474.4 MB, free: 15.46 MB / 362.8 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003632/0.3828, allocations: 233.1 kB / 474.6 MB, free: 15.23 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3829, allocations: 8 kB / 474.6 MB, free: 15.22 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.3829, allocations: 4 kB / 474.6 MB, free: 15.22 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.3829, allocations: 8.594 kB / 474.6 MB, free: 15.21 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.3831, allocations: 51.91 kB / 474.7 MB, free: 15.16 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.3832, allocations: 7.938 kB / 474.7 MB, free: 15.15 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.3833, allocations: 31.83 kB / 474.7 MB, free: 15.12 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.3833, allocations: 8 kB / 474.7 MB, free: 15.11 MB / 362.8 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = false protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = false protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = false 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,$PRE.cplxP_dig_TU.y_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,$PRE.cplxP_dig_FE.y_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,$PRE.cplxP_dig_BE.y_pre1,cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.cplxP_dig_BE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_FE.y,$PRE.cplxP_dig_TU.y,cplxP_dig_TU.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.3835, allocations: 146.5 kB / 474.9 MB, free: 14.96 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.3835, allocations: 23.77 kB / 474.9 MB, free: 14.94 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.284e-05/0.3836, allocations: 21.64 kB / 474.9 MB, free: 14.93 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3836, allocations: 4 kB / 474.9 MB, free: 14.92 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3836, allocations: 0 / 474.9 MB, free: 14.92 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3836, allocations: 0 / 474.9 MB, free: 14.92 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006094/0.3842, allocations: 0.5069 MB / 475.4 MB, free: 14.36 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3842, allocations: 3.984 kB / 475.4 MB, free: 14.36 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.3844, allocations: 27.92 kB / 475.5 MB, free: 14.33 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3844, allocations: 7.953 kB / 475.5 MB, free: 14.32 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.3845, allocations: 8 kB / 475.5 MB, free: 14.31 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3845, allocations: 0 / 475.5 MB, free: 14.31 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3845, allocations: 0 / 475.5 MB, free: 14.31 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004773/0.385, allocations: 363.9 kB / 475.8 MB, free: 13.95 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.385, allocations: 92.91 kB / 475.9 MB, free: 13.84 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.205e-05/0.3851, allocations: 11.95 kB / 475.9 MB, free: 13.82 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.3852, allocations: 12.06 kB / 475.9 MB, free: 13.81 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.3853, allocations: 15.97 kB / 476 MB, free: 13.8 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.3853, allocations: 4 kB / 476 MB, free: 13.79 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.000133/0.3854, allocations: 148.2 kB / 476.1 MB, free: 13.65 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3854, allocations: 3.938 kB / 476.1 MB, free: 13.64 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003377/0.3858, allocations: 59.94 kB / 476.2 MB, free: 13.59 MB / 362.8 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009203/0.3867, allocations: 0.9385 MB / 477.1 MB, free: 12.62 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0002757/0.387, allocations: 147.8 kB / 477.2 MB, free: 12.48 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.387, allocations: 0 / 477.2 MB, free: 12.48 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.3871, allocations: 64.62 kB / 477.3 MB, free: 12.41 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.3874, allocations: 28.78 kB / 477.3 MB, free: 12.39 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007104/0.3881, allocations: 345.3 kB / 477.7 MB, free: 12.02 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/0.3884, allocations: 0.7246 MB / 478.4 MB, free: 11.27 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 9.254e-05/0.3885, allocations: 33.98 kB / 478.4 MB, free: 11.23 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.975e-05/0.3886, allocations: 51.42 kB / 478.5 MB, free: 11.18 MB / 362.8 MB Notification: Performance of SimCode: time 2.5e-07/0.3886, allocations: 0 / 478.5 MB, free: 11.18 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01677/0.4053, allocations: 3.874 MB / 482.4 MB, free: 7.41 MB / 362.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.4056, allocations: 200.9 kB / 482.6 MB, free: 7.172 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.305, allocations: 0 / 482.6 MB, free: 7.172 MB / 362.8 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonComplex.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)