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.00114/0.00114, allocations: 106.7 kB / 16.41 MB, free: 6.512 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.0013/0.0013, allocations: 187 kB / 17.34 MB, free: 5.742 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.382/1.382, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05845/0.05845, allocations: 10.73 MB / 281.3 MB, free: 1.277 MB / 222.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.001449/0.001449, allocations: 69.8 kB / 391.5 MB, free: 46.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07472/0.07618, allocations: 49.03 MB / 440.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002438/0.07867, allocations: 1.662 MB / 442.2 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006859/0.07938, allocations: 370.7 kB / 442.5 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.322e-05/0.07949, allocations: 3.938 kB / 442.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.08e-05/0.07954, allocations: 15.8 kB / 442.6 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.07968, allocations: 19.81 kB / 442.6 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.08003, allocations: 115.6 kB / 442.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.0802, allocations: 155.6 kB / 442.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.08032, allocations: 25.61 kB / 442.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.426e-05/0.08038, allocations: 67.7 kB / 442.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.045e-05/0.08048, allocations: 87.61 kB / 443 MB, free: 1.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.08051, allocations: 12 kB / 443 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.08062, allocations: 79.92 kB / 443.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.294e-05/0.08066, allocations: 47.77 kB / 443.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.08073, allocations: 79.52 kB / 443.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00021/0.08095, allocations: 199.4 kB / 443.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.08096, allocations: 3.938 kB / 443.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.08097, allocations: 0 / 443.4 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.08098, allocations: 0 / 443.4 MB, free: 0.8789 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.0005905/0.08158, allocations: 486.8 kB / 443.9 MB, free: 360 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.9e-05/0.08162, allocations: 11.97 kB / 443.9 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.08168, allocations: 28.73 kB / 444 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.08185, allocations: 239.7 kB / 444.2 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.269e-05/0.08187, allocations: 8.562 kB / 444.2 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.144e-05/0.0819, allocations: 8.375 kB / 444.2 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.08222, allocations: 182.2 kB / 444.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.08224, allocations: 0 / 444.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.08227, allocations: 7.984 kB / 444.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.08229, allocations: 4 kB / 444.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.08245, allocations: 55.95 kB / 444.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007598/0.08322, allocations: 468.4 kB / 444.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.08349, allocations: 126.6 kB / 445 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.08364, allocations: 72.83 kB / 445.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.08366, allocations: 3.984 kB / 445.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.08397, allocations: 146.5 kB / 445.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.793e-06/0.08398, allocations: 0 / 445.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005136/0.0845, allocations: 249.4 kB / 445.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.41e-05/0.08461, allocations: 170.2 kB / 445.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.0848, allocations: 202.7 kB / 445.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.08485, allocations: 37.7 kB / 445.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.08493, allocations: 120.5 kB / 446 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.08499, allocations: 51.2 kB / 446.1 MB, free: 14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/0.08507, allocations: 61.69 kB / 446.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.08519, allocations: 326.8 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.08531, allocations: 52.25 kB / 446.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001967/0.08552, allocations: 177.1 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.0859, allocations: 234.3 kB / 446.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.08592, allocations: 0 / 446.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004026/0.08633, allocations: 249.1 kB / 447.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.08636, allocations: 8 kB / 447.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.08638, allocations: 4 kB / 447.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.0864, allocations: 11.88 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.08662, allocations: 43.92 kB / 447.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.08664, allocations: 11.92 kB / 447.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.08677, allocations: 28.12 kB / 447.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.08679, allocations: 15.98 kB / 447.3 MB, free: 12.7 MB / 334.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.0001805/0.08698, allocations: 147.5 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.08703, allocations: 19.81 kB / 447.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.08708, allocations: 21.92 kB / 447.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.08709, allocations: 3.984 kB / 447.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.0871, allocations: 0 / 447.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.08711, allocations: 3.984 kB / 447.5 MB, free: 12.49 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/0.08776, allocations: 0.5333 MB / 448 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.08777, allocations: 0 / 448 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.08794, allocations: 27.98 kB / 448 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.08795, allocations: 0 / 448 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.08798, allocations: 8 kB / 448 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.08798, allocations: 3.984 kB / 448 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.08799, allocations: 0 / 448 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005493/0.08854, allocations: 383.8 kB / 448.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.08861, allocations: 100.8 kB / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.08866, allocations: 12 kB / 448.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.08878, allocations: 7.984 kB / 448.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.148e-05/0.08886, allocations: 15.92 kB / 448.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.08888, allocations: 11.98 kB / 448.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001338/0.08902, allocations: 148.2 kB / 448.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08903, allocations: 4.062 kB / 448.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003225/0.08936, allocations: 44 kB / 448.7 MB, free: 11.12 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.000184/0.08955, allocations: 143.1 kB / 448.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003482/0.08991, allocations: 155.8 kB / 449 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.08992, allocations: 0.75 kB / 449 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.09008, allocations: 83.86 kB / 449.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003417/0.09043, allocations: 35.91 kB / 449.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006527/0.0911, allocations: 354.6 kB / 449.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.09141, allocations: 0.7362 MB / 450.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.09146, allocations: 19.44 kB / 450.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.09147, allocations: 3.938 kB / 450.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of Templates: time 0.004599/0.09608, allocations: 2.507 MB / 452.8 MB, free: 7.039 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)