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.0009064/0.0009064, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0009948/0.000995, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05545/0.05545, allocations: 10.74 MB / 281.1 MB, free: 10.54 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.0005229/0.000523, allocations: 14.97 kB / 341.6 MB, free: 23.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 50.01 MB / 391.6 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.001922/0.1033, allocations: 1.347 MB / 393 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007476/0.104, allocations: 351 kB / 393.3 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.172e-05/0.1041, allocations: 8 kB / 393.3 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.133e-05/0.1042, allocations: 11.86 kB / 393.4 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.1043, allocations: 7.875 kB / 393.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.1047, allocations: 79.84 kB / 393.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.1049, allocations: 139.7 kB / 393.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.1051, allocations: 25.67 kB / 393.6 MB, free: 3.789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.254e-05/0.1051, allocations: 51.72 kB / 393.6 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1053, allocations: 79.59 kB / 393.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.1053, allocations: 8 kB / 393.7 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.1054, allocations: 67.94 kB / 393.8 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.045e-05/0.1055, allocations: 35.83 kB / 393.8 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.15e-05/0.1055, allocations: 49.58 kB / 393.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1057, allocations: 139.7 kB / 394 MB, free: 3.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.1058, allocations: 4 kB / 394 MB, free: 3.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.155e-06/0.1058, allocations: 0 / 394 MB, free: 3.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1058, allocations: 4 kB / 394 MB, free: 3.352 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.0006399/0.1064, allocations: 443.1 kB / 394.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1065, allocations: 12.03 kB / 394.5 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.476e-05/0.1065, allocations: 19.77 kB / 394.5 MB, free: 2.836 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.1068, allocations: 234.6 kB / 394.7 MB, free: 2.566 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.1068, allocations: 12.19 kB / 394.7 MB, free: 2.555 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.1069, allocations: 15.98 kB / 394.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.1072, allocations: 167.6 kB / 394.9 MB, free: 2.355 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1072, allocations: 3.938 kB / 394.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.1072, allocations: 7.984 kB / 394.9 MB, free: 2.344 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1072, allocations: 7.938 kB / 394.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.1074, allocations: 68.52 kB / 395 MB, free: 2.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007736/0.1082, allocations: 465.4 kB / 395.5 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002375/0.1084, allocations: 130.6 kB / 395.6 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.1086, allocations: 68.83 kB / 395.6 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.1086, allocations: 4 kB / 395.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.1089, allocations: 151.2 kB / 395.8 MB, free: 1.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.674e-06/0.1089, allocations: 0 / 395.8 MB, free: 1.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005346/0.1094, allocations: 265.3 kB / 396.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1096, allocations: 170.2 kB / 396.2 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.1097, allocations: 190.6 kB / 396.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.1098, allocations: 33.7 kB / 396.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.912e-05/0.1099, allocations: 132.3 kB / 396.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.1099, allocations: 55.25 kB / 396.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.11, allocations: 8 kB / 396.6 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1101, allocations: 330.8 kB / 397 MB, free: 164 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.1102, allocations: 52.27 kB / 397 MB, free: 108 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.1104, allocations: 169.7 kB / 397.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.1106, allocations: 87.81 kB / 397.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1106, allocations: 0 / 397.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004011/0.111, allocations: 249.5 kB / 397.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.111, allocations: 8 kB / 397.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.111, allocations: 4 kB / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.1111, allocations: 4 kB / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.1113, allocations: 43.92 kB / 397.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.1113, allocations: 11.92 kB / 397.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1114, allocations: 23.84 kB / 397.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.1115, allocations: 12 kB / 397.6 MB, free: 15.45 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,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001938/0.1117, allocations: 159.6 kB / 397.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.1117, allocations: 19.72 kB / 397.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.961e-05/0.1118, allocations: 21.88 kB / 397.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1118, allocations: 0 / 397.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1118, allocations: 0 / 397.8 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1118, allocations: 3.984 kB / 397.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006215/0.1124, allocations: 0.533 MB / 398.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1124, allocations: 11.92 kB / 398.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1126, allocations: 27.92 kB / 398.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1126, allocations: 0 / 398.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.1127, allocations: 11.98 kB / 398.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1127, allocations: 0 / 398.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1127, allocations: 0 / 398.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005378/0.1132, allocations: 379.7 kB / 398.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.946e-05/0.1133, allocations: 96.91 kB / 398.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/0.1133, allocations: 8 kB / 398.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1134, allocations: 11.98 kB / 398.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.1135, allocations: 7.984 kB / 398.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.1135, allocations: 19.92 kB / 398.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001248/0.1137, allocations: 144.5 kB / 399 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1137, allocations: 0 / 399 MB, free: 13.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.114, allocations: 52 kB / 399.1 MB, free: 13.86 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 (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.0001903/0.1142, allocations: 139.2 kB / 399.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003719/0.1146, allocations: 172 kB / 399.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1146, allocations: 0 / 399.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.1147, allocations: 71.91 kB / 399.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.1151, allocations: 43.55 kB / 399.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006888/0.1158, allocations: 375.1 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.1161, allocations: 0.7248 MB / 400.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001015/0.1162, allocations: 33.88 kB / 400.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.797e-05/0.1163, allocations: 19.44 kB / 400.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1163, allocations: 3.938 kB / 400.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of Templates: time 0.005284/0.1216, allocations: 2.115 MB / 402.8 MB, free: 10.12 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: