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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.002437/0.002438, allocations: 172.8 kB / 12.73 MB, free: 2.586 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08938/0.08938, allocations: 10.65 MB / 23.91 MB, free: 1.633 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.814/1.814, allocations: 205.2 MB / 232.1 MB, free: 12.82 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008236/0.0008236, allocations: 97.39 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.382e-05, allocations: 4 kB / 340.5 MB, free: 3.629 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2719, allocations: 49.98 MB / 390.5 MB, free: 35.74 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09241/0.3643, allocations: 77.57 MB / 468 MB, free: 6.066 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.3646, allocations: 71.95 kB / 468.1 MB, free: 5.996 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.007552/0.3722, allocations: 3.044 MB / 471.1 MB, free: 2.938 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3722, allocations: 224 / 471.1 MB, free: 2.938 MB / 346.8 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.3722, allocations: 3.938 kB / 471.2 MB, free: 2.934 MB / 346.8 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.0005074/0.3728, allocations: 449.8 kB / 471.6 MB, free: 2.445 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.3728, allocations: 8.031 kB / 471.6 MB, free: 2.438 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.823e-05/0.3729, allocations: 23.7 kB / 471.6 MB, free: 2.414 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.3732, allocations: 238.6 kB / 471.9 MB, free: 2.141 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.3732, allocations: 16.19 kB / 471.9 MB, free: 2.125 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.3732, allocations: 12 kB / 471.9 MB, free: 2.113 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.3735, allocations: 157.8 kB / 472 MB, free: 1.941 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3735, allocations: 0 / 472 MB, free: 1.941 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.3736, allocations: 8 kB / 472 MB, free: 1.934 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3736, allocations: 0 / 472 MB, free: 1.934 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001115/0.3737, allocations: 56.48 kB / 472.1 MB, free: 1.879 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007402/0.3744, allocations: 469.4 kB / 472.6 MB, free: 1.371 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.3747, allocations: 122.6 kB / 472.7 MB, free: 1.242 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.845e-05/0.3748, allocations: 64.84 kB / 472.7 MB, free: 1.176 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.3748, allocations: 4 kB / 472.7 MB, free: 1.172 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.375, allocations: 139.5 kB / 472.9 MB, free: 1.023 MB / 346.8 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.375, allocations: 0 / 472.9 MB, free: 1.023 MB / 346.8 MB Notification: Performance of matching and sorting (n=20): time 0.0003667/0.3754, allocations: 199.1 kB / 473.1 MB, free: 0.8242 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.763e-05/0.3755, allocations: 162.2 kB / 473.2 MB, free: 0.6289 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.3757, allocations: 177.6 kB / 473.4 MB, free: 452 kB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.3757, allocations: 41.7 kB / 473.5 MB, free: 404 kB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.3758, allocations: 124.3 kB / 473.6 MB, free: 276 kB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.89e-05/0.3759, allocations: 55.25 kB / 473.6 MB, free: 220 kB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-06/0.3759, allocations: 8 kB / 473.6 MB, free: 212 kB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.376, allocations: 338.8 kB / 474 MB, free: 15.87 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.282e-05/0.3761, allocations: 40.28 kB / 474 MB, free: 15.82 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.3762, allocations: 159.1 kB / 474.2 MB, free: 15.62 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001067/0.3764, allocations: 62.31 kB / 474.2 MB, free: 15.56 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3764, allocations: 4 kB / 474.2 MB, free: 15.55 MB / 362.8 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003218/0.3767, allocations: 241.3 kB / 474.5 MB, free: 15.31 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.3767, allocations: 4.781 kB / 474.5 MB, free: 15.31 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3767, allocations: 4 kB / 474.5 MB, free: 15.3 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.3768, allocations: 4 kB / 474.5 MB, free: 15.3 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002101/0.377, allocations: 51.91 kB / 474.5 MB, free: 15.25 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.377, allocations: 7.984 kB / 474.5 MB, free: 15.24 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.3771, allocations: 23.84 kB / 474.6 MB, free: 15.22 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3771, allocations: 19.92 kB / 474.6 MB, free: 15.2 MB / 362.8 MB Warning: Assuming fixed start value for the following 3 variables: cplxP_dig_TU.u_pre1:DISCRETE(fixed = false protected = true ) type: Real cplxP_dig_FE.u_pre1:DISCRETE(fixed = false protected = true ) type: Real cplxP_dig_BE.u_pre1:DISCRETE(fixed = false 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 () * 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.0001328/0.3773, allocations: 142.8 kB / 474.7 MB, free: 15.05 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/0.3773, allocations: 19.77 kB / 474.7 MB, free: 15.04 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.643e-05/0.3774, allocations: 21.64 kB / 474.8 MB, free: 15.02 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.3774, allocations: 4 kB / 474.8 MB, free: 15.02 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3774, allocations: 0 / 474.8 MB, free: 15.02 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3774, allocations: 0 / 474.8 MB, free: 15.02 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005266/0.3779, allocations: 0.5132 MB / 475.3 MB, free: 14.45 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3779, allocations: 0 / 475.3 MB, free: 14.45 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.3781, allocations: 31.97 kB / 475.3 MB, free: 14.42 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3781, allocations: 11.92 kB / 475.3 MB, free: 14.41 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.3781, allocations: 4 kB / 475.3 MB, free: 14.4 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.3782, allocations: 8 kB / 475.3 MB, free: 14.39 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.3782, allocations: 0 / 475.3 MB, free: 14.39 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004289/0.3786, allocations: 360.9 kB / 475.7 MB, free: 14.03 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.3787, allocations: 88.95 kB / 475.8 MB, free: 13.92 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.3787, allocations: 15.94 kB / 475.8 MB, free: 13.91 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.3788, allocations: 12 kB / 475.8 MB, free: 13.89 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.3789, allocations: 11.97 kB / 475.8 MB, free: 13.88 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.3789, allocations: 8 kB / 475.8 MB, free: 13.88 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0001081/0.379, allocations: 140.3 kB / 475.9 MB, free: 13.74 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.31e-07/0.379, allocations: 0 / 475.9 MB, free: 13.74 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0002996/0.3793, allocations: 63.92 kB / 476 MB, free: 13.68 MB / 362.8 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) * 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.0001935/0.3795, allocations: 156.1 kB / 476.2 MB, free: 13.51 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0002505/0.3798, allocations: 143.9 kB / 476.3 MB, free: 13.37 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3798, allocations: 3.938 kB / 476.3 MB, free: 13.37 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.3799, allocations: 63.95 kB / 476.4 MB, free: 13.3 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.3801, allocations: 31.36 kB / 476.4 MB, free: 13.28 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000472/0.3806, allocations: 261.7 kB / 476.7 MB, free: 13.01 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.3809, allocations: 0.7285 MB / 477.4 MB, free: 12.25 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 8.724e-05/0.381, allocations: 30 kB / 477.4 MB, free: 12.22 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.842e-05/0.381, allocations: 19.44 kB / 477.4 MB, free: 12.2 MB / 362.8 MB Notification: Performance of SimCode: time 3.21e-07/0.381, allocations: 4 kB / 477.4 MB, free: 12.2 MB / 362.8 MB Notification: Performance of Templates: time 0.004598/0.3856, allocations: 2.121 MB / 479.6 MB, free: 10.12 MB / 362.8 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)