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.004407/0.004407, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.000977/0.000977, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.262/1.262, allocations: 205.1 MB / 222.5 MB, free: 4.398 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05511/0.05511, allocations: 10.74 MB / 280.6 MB, free: 10.28 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.001354/0.001354, allocations: 75.48 kB / 390.8 MB, free: 5.016 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2319, allocations: 49.02 MB / 439.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002215/0.2342, allocations: 1.661 MB / 441.5 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005616/0.2347, allocations: 377.8 kB / 441.9 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.875e-05/0.2348, allocations: 3.938 kB / 441.9 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.713e-05/0.2348, allocations: 13.17 kB / 441.9 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.521e-05/0.2349, allocations: 21.84 kB / 441.9 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002924/0.2352, allocations: 113.9 kB / 442 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.2354, allocations: 162.5 kB / 442.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.959e-05/0.2355, allocations: 24.69 kB / 442.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.292e-05/0.2355, allocations: 69.22 kB / 442.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.047e-05/0.2356, allocations: 80.92 kB / 442.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.2357, allocations: 15.12 kB / 442.4 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.2358, allocations: 82.34 kB / 442.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.112e-05/0.2358, allocations: 42.41 kB / 442.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.951e-05/0.2359, allocations: 77.3 kB / 442.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.2361, allocations: 194.4 kB / 442.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2361, allocations: 0 / 442.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2361, allocations: 9.438 kB / 442.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2361, allocations: 0 / 442.8 MB, free: 3.473 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.0005414/0.2367, allocations: 490.8 kB / 443.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.2367, allocations: 14.12 kB / 443.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/0.2367, allocations: 18.89 kB / 443.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.2369, allocations: 240.4 kB / 443.5 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.2369, allocations: 11.14 kB / 443.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.237, allocations: 9.844 kB / 443.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.2372, allocations: 178.4 kB / 443.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2373, allocations: 0 / 443.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.2373, allocations: 6.5 kB / 443.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.2373, allocations: 2.75 kB / 443.7 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001423/0.2374, allocations: 57.02 kB / 443.8 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006085/0.2381, allocations: 470.4 kB / 444.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.2383, allocations: 127.4 kB / 444.4 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.2384, allocations: 82.53 kB / 444.4 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.343e-05/0.2384, allocations: 5.375 kB / 444.4 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.2387, allocations: 138.2 kB / 444.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.2387, allocations: 0 / 444.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004691/0.2392, allocations: 260.4 kB / 444.8 MB, free: 2.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.2392, allocations: 164.5 kB / 445 MB, free: 1.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.2394, allocations: 196.5 kB / 445.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.2394, allocations: 35.83 kB / 445.2 MB, free: 1.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.339e-05/0.2395, allocations: 124.6 kB / 445.3 MB, free: 1.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.2395, allocations: 56.84 kB / 445.4 MB, free: 1.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.349e-05/0.2396, allocations: 55.03 kB / 445.5 MB, free: 1.465 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.603e-05/0.2396, allocations: 331.3 kB / 445.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.875e-05/0.2397, allocations: 59.66 kB / 445.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.2399, allocations: 166.6 kB / 446 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.2401, allocations: 227.3 kB / 446.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2401, allocations: 9.375 kB / 446.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003399/0.2405, allocations: 249.3 kB / 446.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.2405, allocations: 6.469 kB / 446.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.2405, allocations: 3.344 kB / 446.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.2405, allocations: 4.719 kB / 446.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001954/0.2407, allocations: 50.16 kB / 446.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2408, allocations: 5.516 kB / 446.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.2409, allocations: 27.59 kB / 446.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.2409, allocations: 8.844 kB / 446.6 MB, free: 0.6289 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.0001243/0.241, allocations: 152.9 kB / 446.7 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.105e-05/0.2411, allocations: 18.23 kB / 446.7 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.105e-05/0.2411, allocations: 28.97 kB / 446.8 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2411, allocations: 5.656 kB / 446.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.2411, allocations: 1.344 kB / 446.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2411, allocations: 0.8438 kB / 446.8 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004961/0.2416, allocations: 0.5208 MB / 447.3 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2416, allocations: 0 / 447.3 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.2418, allocations: 22.86 kB / 447.3 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.2418, allocations: 4.938 kB / 447.3 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.2418, allocations: 9.828 kB / 447.3 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2418, allocations: 5.219 kB / 447.3 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2418, allocations: 0.8438 kB / 447.3 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005156/0.2424, allocations: 370 kB / 447.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.2424, allocations: 105.2 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/0.2425, allocations: 13.72 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2426, allocations: 6.172 kB / 447.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.2426, allocations: 22.33 kB / 447.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.2427, allocations: 13.19 kB / 447.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001055/0.2428, allocations: 143.9 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2428, allocations: 0 / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.2431, allocations: 55.91 kB / 448.1 MB, free: 15.61 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.0001586/0.2433, allocations: 139.2 kB / 448.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003116/0.2436, allocations: 161.6 kB / 448.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2436, allocations: 0.5625 kB / 448.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.2437, allocations: 74.16 kB / 448.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.2441, allocations: 49.69 kB / 448.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005515/0.2446, allocations: 340.5 kB / 448.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.2449, allocations: 0.7252 MB / 449.5 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.542e-05/0.245, allocations: 28.86 kB / 449.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.245, allocations: 21.12 kB / 449.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.245, allocations: 0 / 449.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Templates: time 0.004889/0.2499, allocations: 2.401 MB / 452 MB, free: 13.36 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)