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: translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.461/1.461, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05905/0.05905, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001599/0.001599, allocations: 67.84 kB / 340.5 MB, free: 23.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09247/0.09409, allocations: 49.03 MB / 389.6 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003738/0.09787, allocations: 1.663 MB / 391.2 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009223/0.09883, allocations: 370.7 kB / 391.6 MB, free: 4.199 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.099, allocations: 0 / 391.6 MB, free: 4.199 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.6e-05/0.09907, allocations: 11.81 kB / 391.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.09924, allocations: 23.73 kB / 391.6 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005109/0.09976, allocations: 111.7 kB / 391.7 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002632/0.1, allocations: 163.5 kB / 391.9 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.1002, allocations: 33.66 kB / 391.9 MB, free: 3.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.1003, allocations: 67.64 kB / 392 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.1005, allocations: 79.61 kB / 392.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.669e-05/0.1006, allocations: 12 kB / 392.1 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.1008, allocations: 83.92 kB / 392.2 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.1008, allocations: 43.83 kB / 392.2 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001164/0.101, allocations: 79.52 kB / 392.3 MB, free: 3.504 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003238/0.1013, allocations: 195.3 kB / 392.5 MB, free: 3.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1013, allocations: 4 kB / 392.5 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1013, allocations: 4 kB / 392.5 MB, free: 3.305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.1013, allocations: 0 / 392.5 MB, free: 3.305 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.0009811/0.1023, allocations: 483.1 kB / 392.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.359e-05/0.1024, allocations: 8.031 kB / 393 MB, free: 2.773 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.1025, allocations: 24.64 kB / 393 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.1029, allocations: 236 kB / 393.2 MB, free: 2.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1029, allocations: 8.562 kB / 393.2 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.532e-05/0.103, allocations: 12.38 kB / 393.2 MB, free: 2.461 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.1033, allocations: 170.2 kB / 393.4 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.1034, allocations: 0 / 393.4 MB, free: 2.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.1034, allocations: 4 kB / 393.4 MB, free: 2.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1034, allocations: 0 / 393.4 MB, free: 2.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001828/0.1036, allocations: 71.89 kB / 393.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009216/0.1045, allocations: 460.5 kB / 393.9 MB, free: 1.699 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.1048, allocations: 130.6 kB / 394 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.105, allocations: 72.83 kB / 394.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.105, allocations: 4 kB / 394.1 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.1055, allocations: 150.7 kB / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.953e-06/0.1055, allocations: 0 / 394.3 MB, free: 1.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.000657/0.1062, allocations: 261.2 kB / 394.5 MB, free: 1.066 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.1063, allocations: 170.2 kB / 394.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.1065, allocations: 194.6 kB / 394.9 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.1066, allocations: 33.7 kB / 394.9 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.92e-05/0.1067, allocations: 128.3 kB / 395 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.1067, allocations: 47.36 kB / 395.1 MB, free: 456 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.1068, allocations: 69.59 kB / 395.2 MB, free: 380 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1069, allocations: 326.8 kB / 395.5 MB, free: 44 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.1071, allocations: 56.19 kB / 395.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.1073, allocations: 167 kB / 395.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1076, allocations: 238.8 kB / 395.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1076, allocations: 0 / 395.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004008/0.108, allocations: 241.5 kB / 396.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1081, allocations: 16.02 kB / 396.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1081, allocations: 0 / 396.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/0.1081, allocations: 8 kB / 396.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.1083, allocations: 39.92 kB / 396.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.1084, allocations: 11.94 kB / 396.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.1085, allocations: 23.83 kB / 396.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.1085, allocations: 16 kB / 396.3 MB, free: 15.14 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.0002146/0.1087, allocations: 155.4 kB / 396.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.1088, allocations: 19.8 kB / 396.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.043e-05/0.1088, allocations: 21.88 kB / 396.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1088, allocations: 0 / 396.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1089, allocations: 0 / 396.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.1089, allocations: 3.984 kB / 396.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006388/0.1095, allocations: 0.5294 MB / 397 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.1095, allocations: 4 kB / 397 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.1097, allocations: 23.98 kB / 397 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1097, allocations: 0 / 397 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.1097, allocations: 8 kB / 397 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1097, allocations: 0 / 397 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.1097, allocations: 7.969 kB / 397 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006044/0.1104, allocations: 382.4 kB / 397.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.1104, allocations: 97.02 kB / 397.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.1105, allocations: 8 kB / 397.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.1106, allocations: 11.98 kB / 397.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.968e-05/0.1106, allocations: 15.88 kB / 397.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.1107, allocations: 15.98 kB / 397.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.1108, allocations: 144.2 kB / 397.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1108, allocations: 0 / 397.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000315/0.1111, allocations: 52 kB / 397.8 MB, free: 13.56 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.000198/0.1113, allocations: 140.2 kB / 397.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.1117, allocations: 171.7 kB / 398.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1117, allocations: 7.875 kB / 398.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.1118, allocations: 67.92 kB / 398.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.1122, allocations: 41.16 kB / 398.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000683/0.1129, allocations: 348.6 kB / 398.5 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.1132, allocations: 0.7245 MB / 399.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.731e-05/0.1133, allocations: 29.92 kB / 399.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.1133, allocations: 23.38 kB / 399.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1133, allocations: 0 / 399.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of Templates: time 0.005592/0.1189, allocations: 2.361 MB / 401.7 MB, free: 9.609 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)