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.001372/0.001372, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001731/0.001732, allocations: 195.9 kB / 16.14 MB, free: 6.703 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.621/1.621, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05323/0.05323, allocations: 10.74 MB / 280.1 MB, free: 10.73 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.001276/0.001276, allocations: 63.91 kB / 339.9 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.1001, allocations: 49.02 MB / 388.9 MB, free: 6.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003041/0.1032, allocations: 1.72 MB / 390.6 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007889/0.104, allocations: 382.8 kB / 391 MB, free: 4.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.963e-05/0.1041, allocations: 4 kB / 391 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.676e-05/0.1042, allocations: 7.875 kB / 391 MB, free: 4.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.1043, allocations: 15.86 kB / 391 MB, free: 4.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003123/0.1046, allocations: 95.83 kB / 391.1 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.1048, allocations: 147.6 kB / 391.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.1049, allocations: 21.69 kB / 391.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.795e-05/0.105, allocations: 67.64 kB / 391.3 MB, free: 4.242 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.1051, allocations: 75.59 kB / 391.4 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.1052, allocations: 8 kB / 391.4 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.1053, allocations: 71.94 kB / 391.5 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.152e-05/0.1054, allocations: 43.77 kB / 391.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.458e-05/0.1054, allocations: 67.53 kB / 391.6 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.1057, allocations: 195.4 kB / 391.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1057, allocations: 0 / 391.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1057, allocations: 4 kB / 391.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1057, allocations: 0 / 391.8 MB, free: 3.785 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.0007583/0.1065, allocations: 487.1 kB / 392.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.1065, allocations: 8.031 kB / 392.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/0.1066, allocations: 28.66 kB / 392.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.1069, allocations: 231.9 kB / 392.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.1069, allocations: 8.562 kB / 392.5 MB, free: 2.949 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.1069, allocations: 20.36 kB / 392.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.1072, allocations: 175.3 kB / 392.7 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1073, allocations: 0 / 392.7 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1073, allocations: 3.984 kB / 392.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1073, allocations: 4 kB / 392.7 MB, free: 2.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.1075, allocations: 55.97 kB / 392.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007304/0.1082, allocations: 468.5 kB / 393.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.1085, allocations: 134.6 kB / 393.4 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1086, allocations: 72.77 kB / 393.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.1086, allocations: 0 / 393.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.1089, allocations: 147.2 kB / 393.6 MB, free: 1.797 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.1089, allocations: 4 kB / 393.6 MB, free: 1.793 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.000558/0.1095, allocations: 261.3 kB / 393.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.1096, allocations: 162.2 kB / 394 MB, free: 1.336 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.1098, allocations: 198.6 kB / 394.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.1098, allocations: 33.7 kB / 394.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.11, allocations: 132.3 kB / 394.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.497e-05/0.11, allocations: 55.28 kB / 394.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.1101, allocations: 57.61 kB / 394.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1102, allocations: 334.8 kB / 394.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.1104, allocations: 52.25 kB / 394.8 MB, free: 460 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1106, allocations: 163.1 kB / 395 MB, free: 244 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.111, allocations: 238.8 kB / 395.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.111, allocations: 4 kB / 395.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004156/0.1114, allocations: 240.9 kB / 395.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.1114, allocations: 8.375 kB / 395.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.1115, allocations: 8.047 kB / 395.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.1115, allocations: 7.984 kB / 395.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.1117, allocations: 51.84 kB / 395.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1117, allocations: 4 kB / 395.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.1118, allocations: 19.84 kB / 395.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.1119, allocations: 16 kB / 395.6 MB, free: 15.61 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.0002045/0.1121, allocations: 151.4 kB / 395.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.347e-05/0.1121, allocations: 19.81 kB / 395.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.757e-05/0.1122, allocations: 21.86 kB / 395.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.1122, allocations: 0 / 395.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.1122, allocations: 4 kB / 395.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1122, allocations: 0 / 395.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006268/0.1128, allocations: 0.5289 MB / 396.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1129, allocations: 0 / 396.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.113, allocations: 27.98 kB / 396.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.113, allocations: 0 / 396.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.1131, allocations: 11.98 kB / 396.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1131, allocations: 0 / 396.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1131, allocations: 7.938 kB / 396.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005318/0.1136, allocations: 375 kB / 396.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.1137, allocations: 96.94 kB / 396.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.933e-05/0.1137, allocations: 12.06 kB / 396.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.1138, allocations: 11.98 kB / 396.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/0.1139, allocations: 23.81 kB / 396.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.1139, allocations: 8 kB / 396.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001144/0.114, allocations: 144.2 kB / 397 MB, free: 14.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1141, allocations: 0 / 397 MB, free: 14.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003092/0.1144, allocations: 59.98 kB / 397.1 MB, free: 14.02 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.0001959/0.1146, allocations: 143.4 kB / 397.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003302/0.1149, allocations: 155.8 kB / 397.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1149, allocations: 0 / 397.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.1151, allocations: 71.91 kB / 397.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.1154, allocations: 43.69 kB / 397.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006979/0.1161, allocations: 383.2 kB / 397.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.1164, allocations: 0.7248 MB / 398.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.481e-05/0.1165, allocations: 25.94 kB / 398.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.1166, allocations: 19.44 kB / 398.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1166, allocations: 0 / 398.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of Templates: time 0.005447/0.122, allocations: 2.232 MB / 400.9 MB, free: 10.18 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)