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.001586/0.001586, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001631/0.001631, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.732/1.732, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05979/0.05979, allocations: 10.74 MB / 281.3 MB, free: 1.285 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: 64.11 kB / 342 MB, free: 4.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3184, allocations: 49 MB / 391 MB, free: 49.97 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003387/0.3218, allocations: 1.677 MB / 392.7 MB, free: 48.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007758/0.3226, allocations: 376.8 kB / 393 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.071e-05/0.3227, allocations: 5.188 kB / 393 MB, free: 48.54 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.491e-05/0.3228, allocations: 15.81 kB / 393 MB, free: 48.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.3229, allocations: 17.56 kB / 393.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.3234, allocations: 114.4 kB / 393.2 MB, free: 48.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.3237, allocations: 162.2 kB / 393.3 MB, free: 48.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3239, allocations: 23.3 kB / 393.4 MB, free: 48.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.706e-05/0.324, allocations: 70.14 kB / 393.4 MB, free: 48.33 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.3242, allocations: 84.3 kB / 393.5 MB, free: 48.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.3242, allocations: 14.81 kB / 393.5 MB, free: 48.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.3244, allocations: 79.22 kB / 393.6 MB, free: 48.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.044e-05/0.3245, allocations: 38.44 kB / 393.6 MB, free: 48.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.3246, allocations: 81.14 kB / 393.7 MB, free: 48.19 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.325, allocations: 198.7 kB / 393.9 MB, free: 48.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.325, allocations: 0 / 393.9 MB, free: 48.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.325, allocations: 0 / 393.9 MB, free: 48.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.325, allocations: 4 kB / 393.9 MB, free: 48.11 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.0009006/0.3259, allocations: 492.4 kB / 394.4 MB, free: 47.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.326, allocations: 9.094 kB / 394.4 MB, free: 47.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.3261, allocations: 19.27 kB / 394.4 MB, free: 47.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.3264, allocations: 228.7 kB / 394.6 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.3264, allocations: 10.81 kB / 394.7 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.728e-05/0.3264, allocations: 15.55 kB / 394.7 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003584/0.3268, allocations: 176.6 kB / 394.8 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3268, allocations: 0.8438 kB / 394.8 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.3269, allocations: 3.734 kB / 394.8 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.3269, allocations: 5.359 kB / 394.9 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3271, allocations: 60.45 kB / 394.9 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009327/0.328, allocations: 471.2 kB / 395.4 MB, free: 46.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.3283, allocations: 129 kB / 395.5 MB, free: 46.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.3285, allocations: 72.89 kB / 395.6 MB, free: 46.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.3285, allocations: 5.938 kB / 395.6 MB, free: 46.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.3289, allocations: 141.6 kB / 395.7 MB, free: 46.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.804e-06/0.3289, allocations: 1.375 kB / 395.7 MB, free: 46.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006578/0.3296, allocations: 257.3 kB / 396 MB, free: 46.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.3297, allocations: 182 kB / 396.1 MB, free: 46.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.3299, allocations: 196.2 kB / 396.3 MB, free: 46.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.33, allocations: 35.64 kB / 396.4 MB, free: 46.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.069e-05/0.33, allocations: 125.2 kB / 396.5 MB, free: 46.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.3301, allocations: 51.88 kB / 396.5 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.3302, allocations: 58.72 kB / 396.6 MB, free: 46.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.3303, allocations: 329.7 kB / 396.9 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.3304, allocations: 47.55 kB / 397 MB, free: 45.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.3306, allocations: 172 kB / 397.1 MB, free: 45.6 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.3309, allocations: 237.7 kB / 397.4 MB, free: 45.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3309, allocations: 0 / 397.4 MB, free: 45.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003878/0.3313, allocations: 249.6 kB / 397.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3314, allocations: 7.656 kB / 397.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3314, allocations: 2.375 kB / 397.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.3314, allocations: 5.344 kB / 397.6 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.3316, allocations: 46.22 kB / 397.7 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.3316, allocations: 9.359 kB / 397.7 MB, free: 45.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.3318, allocations: 26.88 kB / 397.7 MB, free: 45.28 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.034e-05/0.3318, allocations: 13.47 kB / 397.7 MB, free: 45.27 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.0001701/0.332, allocations: 154.3 kB / 397.9 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.332, allocations: 18.44 kB / 397.9 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.268e-05/0.3321, allocations: 18.28 kB / 397.9 MB, free: 45.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.3321, allocations: 10.22 kB / 397.9 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.3321, allocations: 1.922 kB / 397.9 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3321, allocations: 0.7969 kB / 397.9 MB, free: 45.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007385/0.3329, allocations: 0.5212 MB / 398.4 MB, free: 44.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3329, allocations: 1.281 kB / 398.4 MB, free: 44.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.3331, allocations: 26.06 kB / 398.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.565e-05/0.3331, allocations: 1.062 kB / 398.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.3331, allocations: 9.344 kB / 398.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3331, allocations: 1.219 kB / 398.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3331, allocations: 4.656 kB / 398.5 MB, free: 44.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00067/0.3338, allocations: 373 kB / 398.8 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.557e-05/0.3339, allocations: 100.2 kB / 398.9 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.3339, allocations: 10.22 kB / 399 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.3341, allocations: 15.2 kB / 399 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.229e-05/0.3342, allocations: 21.91 kB / 399 MB, free: 44.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/0.3342, allocations: 16.33 kB / 399 MB, free: 44.36 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.3344, allocations: 143.8 kB / 399.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.3344, allocations: 0 / 399.1 MB, free: 44.26 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004225/0.3348, allocations: 59.92 kB / 399.2 MB, free: 44.25 MB / 318.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.0002672/0.3351, allocations: 141.4 kB / 399.3 MB, free: 44.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004895/0.3356, allocations: 165.7 kB / 399.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/0.3356, allocations: 0 / 399.5 MB, free: 44.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.3358, allocations: 71.23 kB / 399.6 MB, free: 44.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000378/0.3362, allocations: 37.84 kB / 399.6 MB, free: 44.06 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000659/0.3368, allocations: 339.5 kB / 399.9 MB, free: 43.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.3371, allocations: 0.7256 MB / 400.7 MB, free: 43.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.217e-05/0.3372, allocations: 21.72 kB / 400.7 MB, free: 43.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.3372, allocations: 23.94 kB / 400.7 MB, free: 43.13 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3372, allocations: 0 / 400.7 MB, free: 43.13 MB / 318.1 MB Notification: Performance of Templates: time 0.006035/0.3433, allocations: 2.372 MB / 403.1 MB, free: 42.12 MB / 318.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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1)