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.00109/0.00109, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05582/0.05582, allocations: 10.75 MB / 27.48 MB, free: 1.875 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.31/1.31, allocations: 205.1 MB / 235.7 MB, free: 11.75 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.0009145/0.0009144, allocations: 102.3 kB / 285.5 MB, free: 12.86 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001114, allocations: 59.91 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2601, allocations: 49.01 MB / 394.3 MB, free: 35.56 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.002859/0.263, allocations: 1.722 MB / 396 MB, free: 33.82 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.0008484/0.2639, allocations: 381.1 kB / 396.4 MB, free: 33.45 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.121e-05/0.264, allocations: 8 kB / 396.4 MB, free: 33.45 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 5.706e-05/0.2641, allocations: 11.86 kB / 396.4 MB, free: 33.43 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.2642, allocations: 11.88 kB / 396.4 MB, free: 33.42 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004303/0.2647, allocations: 95.83 kB / 396.5 MB, free: 33.33 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002855/0.2649, allocations: 151.6 kB / 396.7 MB, free: 33.18 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.2651, allocations: 21.67 kB / 396.7 MB, free: 33.16 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 6.079e-05/0.2652, allocations: 63.66 kB / 396.8 MB, free: 33.1 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 9.828e-05/0.2653, allocations: 75.59 kB / 396.8 MB, free: 33.02 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.2653, allocations: 12 kB / 396.8 MB, free: 33.01 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.2655, allocations: 79.86 kB / 396.9 MB, free: 32.93 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 3.986e-05/0.2655, allocations: 31.89 kB / 396.9 MB, free: 32.9 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 7.238e-05/0.2656, allocations: 71.48 kB / 397 MB, free: 32.83 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.2658, allocations: 187.5 kB / 397.2 MB, free: 32.65 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2658, allocations: 0 / 397.2 MB, free: 32.65 MB / 298.8 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2658, allocations: 0 / 397.2 MB, free: 32.65 MB / 298.8 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.2658, allocations: 4 kB / 397.2 MB, free: 32.64 MB / 298.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.0006652/0.2665, allocations: 492.9 kB / 397.7 MB, free: 32.11 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.2665, allocations: 12.03 kB / 397.7 MB, free: 32.1 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.2666, allocations: 16.75 kB / 397.7 MB, free: 32.09 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002229/0.2668, allocations: 242.2 kB / 397.9 MB, free: 31.81 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.2669, allocations: 16.55 kB / 398 MB, free: 31.8 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.419e-05/0.2669, allocations: 12.38 kB / 398 MB, free: 31.79 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.2672, allocations: 174.1 kB / 398.1 MB, free: 31.59 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.2672, allocations: 0 / 398.1 MB, free: 31.59 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.2672, allocations: 8 kB / 398.2 MB, free: 31.59 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2673, allocations: 7.922 kB / 398.2 MB, free: 31.58 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/0.2674, allocations: 59.97 kB / 398.2 MB, free: 31.52 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008399/0.2683, allocations: 468.5 kB / 398.7 MB, free: 31.01 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.2685, allocations: 126.6 kB / 398.8 MB, free: 30.88 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.2686, allocations: 72.83 kB / 398.9 MB, free: 30.8 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.2687, allocations: 4 kB / 398.9 MB, free: 30.8 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.2689, allocations: 148.1 kB / 399 MB, free: 30.64 MB / 298.8 MB Notification: Performance of pre-optimization done (n=20): time 1.683e-06/0.2689, allocations: 0 / 399 MB, free: 30.64 MB / 298.8 MB Notification: Performance of matching and sorting (n=20): time 0.0004649/0.2694, allocations: 254.9 kB / 399.3 MB, free: 30.39 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.2695, allocations: 166.2 kB / 399.4 MB, free: 30.19 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.2696, allocations: 198.5 kB / 399.6 MB, free: 29.98 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.2696, allocations: 41.69 kB / 399.7 MB, free: 29.94 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 5.608e-05/0.2697, allocations: 124.4 kB / 399.8 MB, free: 29.81 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.2697, allocations: 51.3 kB / 399.8 MB, free: 29.76 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.2698, allocations: 53.7 kB / 399.9 MB, free: 29.7 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 5.727e-05/0.2698, allocations: 338.8 kB / 400.2 MB, free: 29.36 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.751e-05/0.2699, allocations: 48.25 kB / 400.3 MB, free: 29.31 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.2701, allocations: 171.1 kB / 400.4 MB, free: 29.09 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002485/0.2703, allocations: 235.6 kB / 400.7 MB, free: 28.82 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2703, allocations: 0 / 400.7 MB, free: 28.82 MB / 298.8 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000301/0.2706, allocations: 241.1 kB / 400.9 MB, free: 28.58 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.2707, allocations: 6.188 kB / 400.9 MB, free: 28.57 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2707, allocations: 8.312 kB / 400.9 MB, free: 28.57 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.2707, allocations: 15.94 kB / 400.9 MB, free: 28.55 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.2709, allocations: 51.91 kB / 401 MB, free: 28.5 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.2709, allocations: 4 kB / 401 MB, free: 28.5 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.271, allocations: 31.73 kB / 401 MB, free: 28.46 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.2711, allocations: 8 kB / 401 MB, free: 28.46 MB / 298.8 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.0001546/0.2712, allocations: 148.1 kB / 401.2 MB, free: 28.3 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.2712, allocations: 15.81 kB / 401.2 MB, free: 28.29 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.2713, allocations: 29.86 kB / 401.2 MB, free: 28.26 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.2713, allocations: 7.938 kB / 401.2 MB, free: 28.25 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.2713, allocations: 48 / 401.2 MB, free: 28.25 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2713, allocations: 3.984 kB / 401.2 MB, free: 28.25 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005666/0.2719, allocations: 0.5184 MB / 401.7 MB, free: 27.67 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2719, allocations: 3.984 kB / 401.7 MB, free: 27.67 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.2721, allocations: 23.98 kB / 401.8 MB, free: 27.64 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2721, allocations: 8 kB / 401.8 MB, free: 27.64 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.2721, allocations: 4 kB / 401.8 MB, free: 27.63 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2722, allocations: 0 / 401.8 MB, free: 27.63 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2722, allocations: 0 / 401.8 MB, free: 27.63 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/0.2735, allocations: 1.417 MB / 403.2 MB, free: 26.08 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.146e-05/0.2735, allocations: 96.94 kB / 403.3 MB, free: 25.96 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.2736, allocations: 11.94 kB / 403.3 MB, free: 25.95 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.2737, allocations: 7.984 kB / 403.3 MB, free: 25.95 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.2737, allocations: 20.02 kB / 403.3 MB, free: 25.93 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.2737, allocations: 11.98 kB / 403.3 MB, free: 25.91 MB / 298.8 MB Notification: Performance of sorting global known variables: time 8.024e-05/0.2738, allocations: 148.2 kB / 403.5 MB, free: 25.77 MB / 298.8 MB Notification: Performance of sort global known variables: time 1e-07/0.2738, allocations: 0 / 403.5 MB, free: 25.77 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0003476/0.2742, allocations: 56 kB / 403.5 MB, free: 25.71 MB / 298.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) * 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.0001473/0.2743, allocations: 127.5 kB / 403.7 MB, free: 25.58 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0002714/0.2746, allocations: 163.9 kB / 403.8 MB, free: 25.42 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2746, allocations: 0 / 403.8 MB, free: 25.42 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.2748, allocations: 71.91 kB / 403.9 MB, free: 25.35 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.2751, allocations: 36.69 kB / 403.9 MB, free: 25.32 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005995/0.2757, allocations: 0.5405 MB / 404.5 MB, free: 24.74 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001384/0.2758, allocations: 0.7364 MB / 405.2 MB, free: 23.97 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 8.412e-05/0.2759, allocations: 29.92 kB / 405.2 MB, free: 23.95 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.342e-05/0.276, allocations: 19.44 kB / 405.3 MB, free: 23.93 MB / 298.8 MB Notification: Performance of SimCode: time 2.01e-07/0.276, allocations: 0 / 405.3 MB, free: 23.93 MB / 298.8 MB Notification: Performance of Templates: time 0.004502/0.2805, allocations: 2.399 MB / 407.7 MB, free: 21.54 MB / 298.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)