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.0008558/0.000856, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004539/0.004539, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.351/1.351, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05331/0.05331, allocations: 10.74 MB / 281.5 MB, free: 10.45 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.0005077/0.0005078, allocations: 16.56 kB / 342.3 MB, free: 23.4 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09278, allocations: 50.01 MB / 392.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.00196/0.09478, allocations: 1.378 MB / 393.7 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007346/0.09554, allocations: 378.8 kB / 394.1 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.506e-05/0.09563, allocations: 7.938 kB / 394.1 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.09567, allocations: 7.922 kB / 394.1 MB, free: 3.547 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.09578, allocations: 7.875 kB / 394.1 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.09615, allocations: 103.8 kB / 394.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002228/0.09639, allocations: 147.6 kB / 394.4 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.09652, allocations: 17.69 kB / 394.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.096e-05/0.09662, allocations: 63.64 kB / 394.4 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.09674, allocations: 83.53 kB / 394.5 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.09677, allocations: 8 kB / 394.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.09692, allocations: 67.94 kB / 394.6 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.423e-05/0.09697, allocations: 35.89 kB / 394.6 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.09708, allocations: 105.2 kB / 394.7 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002575/0.09735, allocations: 183.4 kB / 394.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.09736, allocations: 3.938 kB / 394.9 MB, free: 2.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.09737, allocations: 0 / 394.9 MB, free: 2.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.09738, allocations: 0 / 394.9 MB, free: 2.73 MB / 286.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.0007125/0.0981, allocations: 443.4 kB / 395.4 MB, free: 2.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.09815, allocations: 15.97 kB / 395.4 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.78e-05/0.09823, allocations: 42.73 kB / 395.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.09829, allocations: 20.75 kB / 395.4 MB, free: 2.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.09856, allocations: 235.8 kB / 395.7 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.09858, allocations: 8.562 kB / 395.7 MB, free: 1.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.09862, allocations: 12.38 kB / 395.7 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003215/0.09895, allocations: 177.9 kB / 395.9 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.09897, allocations: 0 / 395.9 MB, free: 1.676 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.099, allocations: 8 kB / 395.9 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.09902, allocations: 3.984 kB / 395.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.09919, allocations: 63.95 kB / 395.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007833/0.09998, allocations: 480.5 kB / 396.4 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002508/0.1002, allocations: 130.6 kB / 396.5 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001358/0.1004, allocations: 79.89 kB / 396.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.1004, allocations: 0 / 396.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.1007, allocations: 151.3 kB / 396.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.433e-06/0.1007, allocations: 0 / 396.7 MB, free: 0.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005308/0.1013, allocations: 261.4 kB / 397 MB, free: 456 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.351e-05/0.1014, allocations: 166.2 kB / 397.2 MB, free: 252 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.1016, allocations: 206.4 kB / 397.4 MB, free: 32 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.263e-05/0.1017, allocations: 33.78 kB / 397.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.316e-05/0.1018, allocations: 128.4 kB / 397.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1019, allocations: 55.25 kB / 397.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-05/0.1019, allocations: 33.7 kB / 397.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.1021, allocations: 334.8 kB / 397.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001178/0.1022, allocations: 52.27 kB / 398 MB, free: 15.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.1024, allocations: 159.1 kB / 398.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/0.1027, allocations: 246.6 kB / 398.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1028, allocations: 0 / 398.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004/0.1032, allocations: 257 kB / 398.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1032, allocations: 8 kB / 398.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1032, allocations: 4 kB / 398.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1032, allocations: 4 kB / 398.7 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.1034, allocations: 48.3 kB / 398.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.1035, allocations: 11.98 kB / 398.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.1036, allocations: 27.75 kB / 398.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.1036, allocations: 12 kB / 398.8 MB, free: 14.52 MB / 302.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.0001803/0.1038, allocations: 151.7 kB / 398.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.1038, allocations: 15.81 kB / 398.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.006e-05/0.1039, allocations: 21.81 kB / 398.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1039, allocations: 8 kB / 398.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.1039, allocations: 3.984 kB / 398.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1039, allocations: 4.031 kB / 399 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005891/0.1045, allocations: 0.5328 MB / 399.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1045, allocations: 0 / 399.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.1047, allocations: 27.92 kB / 399.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1047, allocations: 4 kB / 399.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.1047, allocations: 11.98 kB / 399.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1047, allocations: 0 / 399.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1048, allocations: 0 / 399.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005157/0.1053, allocations: 375.2 kB / 399.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.1053, allocations: 93.02 kB / 400 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.1054, allocations: 15.98 kB / 400 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.1055, allocations: 8 kB / 400 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.1056, allocations: 19.88 kB / 400 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.1056, allocations: 15.92 kB / 400 MB, free: 13.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.1057, allocations: 144.2 kB / 400.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1057, allocations: 0 / 400.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.106, allocations: 59.91 kB / 400.2 MB, free: 12.93 MB / 302.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.0008249/0.1069, allocations: 0.9504 MB / 401.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.1072, allocations: 171.4 kB / 401.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1072, allocations: 3.938 kB / 401.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.1074, allocations: 71.91 kB / 401.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.1077, allocations: 43.58 kB / 401.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002716/0.1104, allocations: 2.454 MB / 403.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.1107, allocations: 0.7246 MB / 404.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.538e-05/0.1108, allocations: 25.94 kB / 404.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.1109, allocations: 51.42 kB / 404.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of SimCode: time 2.174e-06/0.1109, allocations: 0 / 404.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1187/0.2296, allocations: 4.018 MB / 408.7 MB, free: 4.352 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/0.2299, allocations: 232.4 kB / 409 MB, free: 4.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.161, allocations: 4 kB / 409 MB, free: 4.098 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/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)