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.006084/0.006084, allocations: 97.42 kB / 15.73 MB, free: 6.055 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.001205/0.001205, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.531/1.531, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05664/0.05664, allocations: 10.74 MB / 280.6 MB, free: 10.41 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.001667/0.001667, allocations: 75.19 kB / 390.8 MB, free: 5.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3294, allocations: 49.01 MB / 439.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.00332/0.3327, allocations: 1.666 MB / 441.5 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008529/0.3336, allocations: 373.3 kB / 441.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/0.3337, allocations: 9.312 kB / 441.9 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.372e-05/0.3338, allocations: 12.47 kB / 441.9 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.3339, allocations: 20.81 kB / 441.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004274/0.3343, allocations: 111.4 kB / 442 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002434/0.3346, allocations: 161.2 kB / 442.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.3348, allocations: 28.91 kB / 442.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.924e-05/0.3349, allocations: 69.27 kB / 442.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.335, allocations: 81.58 kB / 442.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.335, allocations: 13.75 kB / 442.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.3352, allocations: 82.38 kB / 442.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.537e-05/0.3353, allocations: 43.8 kB / 442.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.236e-05/0.3353, allocations: 80.88 kB / 442.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003575/0.3357, allocations: 198.4 kB / 442.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3357, allocations: 1.406 kB / 442.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3357, allocations: 4 kB / 442.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.3357, allocations: 0 / 442.8 MB, free: 3.465 MB / 318.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.0008647/0.3366, allocations: 492.9 kB / 443.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.3367, allocations: 10.52 kB / 443.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.736e-05/0.3368, allocations: 22.39 kB / 443.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.3371, allocations: 244.6 kB / 443.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.3371, allocations: 6.828 kB / 443.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.364e-05/0.3372, allocations: 15.12 kB / 443.6 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.3375, allocations: 178.2 kB / 443.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3375, allocations: 0 / 443.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.3376, allocations: 3.172 kB / 443.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3376, allocations: 5.375 kB / 443.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001821/0.3378, allocations: 61.33 kB / 443.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008279/0.3386, allocations: 467.8 kB / 444.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002677/0.3389, allocations: 127 kB / 444.4 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.339, allocations: 76.95 kB / 444.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.3391, allocations: 1.438 kB / 444.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.3394, allocations: 146.7 kB / 444.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.884e-06/0.3394, allocations: 0 / 444.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005762/0.34, allocations: 252 kB / 444.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.593e-05/0.3401, allocations: 169.2 kB / 445 MB, free: 1.812 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.3403, allocations: 197.2 kB / 445.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.3403, allocations: 34.62 kB / 445.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.401e-05/0.3404, allocations: 121 kB / 445.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.732e-05/0.3404, allocations: 64.47 kB / 445.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.3405, allocations: 56.22 kB / 445.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.3406, allocations: 330.9 kB / 445.8 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.3408, allocations: 61.52 kB / 445.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.3409, allocations: 164.6 kB / 446 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.3413, allocations: 238.8 kB / 446.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3413, allocations: 1.094 kB / 446.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003882/0.3417, allocations: 249.9 kB / 446.5 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3417, allocations: 5.906 kB / 446.5 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.3417, allocations: 4.094 kB / 446.5 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3417, allocations: 9.156 kB / 446.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.342, allocations: 50.38 kB / 446.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.342, allocations: 4.734 kB / 446.6 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.3421, allocations: 30.48 kB / 446.6 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.05e-05/0.3422, allocations: 10.28 kB / 446.6 MB, free: 0.6016 MB / 318.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.0002082/0.3424, allocations: 149.5 kB / 446.7 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.3424, allocations: 18.14 kB / 446.8 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.3425, allocations: 28.22 kB / 446.8 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.3425, allocations: 6.125 kB / 446.8 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.3425, allocations: 0 / 446.8 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3425, allocations: 1.219 kB / 446.8 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/0.3432, allocations: 0.53 MB / 447.3 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.3432, allocations: 0 / 447.3 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.3434, allocations: 22.42 kB / 447.4 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3434, allocations: 0 / 447.4 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.3434, allocations: 10.06 kB / 447.4 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.3434, allocations: 5.641 kB / 447.4 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3434, allocations: 0 / 447.4 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006792/0.3441, allocations: 380.3 kB / 447.7 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.407e-05/0.3442, allocations: 95.83 kB / 447.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.404e-05/0.3443, allocations: 8.828 kB / 447.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3444, allocations: 10.84 kB / 447.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.3445, allocations: 17.92 kB / 447.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.3445, allocations: 12.91 kB / 447.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.3446, allocations: 144.6 kB / 448 MB, free: 15.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3447, allocations: 0 / 448 MB, free: 15.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003956/0.3451, allocations: 56.27 kB / 448.1 MB, free: 15.58 MB / 334.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.0002288/0.3453, allocations: 143.4 kB / 448.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004129/0.3457, allocations: 160.6 kB / 448.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3457, allocations: 1.25 kB / 448.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.3459, allocations: 75.27 kB / 448.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.3463, allocations: 39.02 kB / 448.5 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007553/0.347, allocations: 338.2 kB / 448.8 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.3474, allocations: 0.7262 MB / 449.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.947e-05/0.3475, allocations: 33.16 kB / 449.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.3475, allocations: 20.41 kB / 449.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3475, allocations: 0 / 449.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Templates: time 0.006083/0.3536, allocations: 2.408 MB / 452 MB, free: 13.3 MB / 334.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)