Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.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.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic") translateModel(IndustrialControlSystems.LinearSystems.Examples.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 104.5 kB / 16.35 MB, free: 5.828 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.00164/0.00164, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.719/1.719, 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.05863/0.05863, allocations: 10.74 MB / 281.3 MB, free: 1.309 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.001446/0.001447, allocations: 71.91 kB / 342 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.351, allocations: 49 MB / 391 MB, free: 50.17 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.00544/0.3566, allocations: 1.85 MB / 392.8 MB, free: 48.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.3581, allocations: 0.605 MB / 393.4 MB, free: 48.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.3582, allocations: 5.844 kB / 393.4 MB, free: 48.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.103e-05/0.3583, allocations: 17.11 kB / 393.5 MB, free: 48.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3585, allocations: 30.53 kB / 393.5 MB, free: 48.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008416/0.3594, allocations: 188.8 kB / 393.7 MB, free: 48.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004026/0.3598, allocations: 211.1 kB / 393.9 MB, free: 48.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.36, allocations: 39.66 kB / 393.9 MB, free: 48.22 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.3601, allocations: 87.92 kB / 394 MB, free: 48.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.3603, allocations: 103.5 kB / 394.1 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.295e-05/0.3604, allocations: 18.41 kB / 394.1 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003051/0.3607, allocations: 157.4 kB / 394.3 MB, free: 48.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.439e-05/0.3607, allocations: 50.92 kB / 394.3 MB, free: 48.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.3609, allocations: 98.75 kB / 394.4 MB, free: 47.97 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005284/0.3614, allocations: 310.4 kB / 394.7 MB, free: 47.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3614, allocations: 1.25 kB / 394.7 MB, free: 47.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.3614, allocations: 0 / 394.7 MB, free: 47.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.3614, allocations: 0.6562 kB / 394.7 MB, free: 47.84 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001023/0.3625, allocations: 0.5599 MB / 395.3 MB, free: 47.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/0.3625, allocations: 13.48 kB / 395.3 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.953e-05/0.3627, allocations: 26.92 kB / 395.3 MB, free: 47.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004036/0.3631, allocations: 272.8 kB / 395.6 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.3631, allocations: 10.53 kB / 395.6 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.663e-05/0.3632, allocations: 20.55 kB / 395.6 MB, free: 47.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.3636, allocations: 178.1 kB / 395.8 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.3636, allocations: 0.8906 kB / 395.8 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.3637, allocations: 9.922 kB / 395.8 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3637, allocations: 2.75 kB / 395.8 MB, free: 46.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.3639, allocations: 66.05 kB / 395.9 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.365, allocations: 0.5151 MB / 396.4 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/0.3653, allocations: 140.7 kB / 396.5 MB, free: 46.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.3655, allocations: 67.8 kB / 396.6 MB, free: 46.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3655, allocations: 5.438 kB / 396.6 MB, free: 46.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004065/0.3659, allocations: 146.2 kB / 396.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.894e-06/0.3659, allocations: 0 / 396.7 MB, free: 46.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006982/0.3666, allocations: 269.2 kB / 397 MB, free: 46.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.897e-05/0.3667, allocations: 163.5 kB / 397.2 MB, free: 46.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.3671, allocations: 263.6 kB / 397.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.3671, allocations: 32.84 kB / 397.5 MB, free: 45.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3672, allocations: 152 kB / 397.6 MB, free: 45.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.3673, allocations: 62.11 kB / 397.7 MB, free: 45.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.3674, allocations: 65.23 kB / 397.7 MB, free: 45.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3675, allocations: 338.6 kB / 398.1 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.3677, allocations: 57.17 kB / 398.1 MB, free: 45.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.3679, allocations: 182.3 kB / 398.3 MB, free: 45.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.3684, allocations: 241.1 kB / 398.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.3684, allocations: 1 kB / 398.5 MB, free: 44.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000524/0.3689, allocations: 270 kB / 398.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.3689, allocations: 8.641 kB / 398.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.369, allocations: 3.531 kB / 398.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.556e-05/0.369, allocations: 5.5 kB / 398.8 MB, free: 44.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003303/0.3693, allocations: 58.23 kB / 398.9 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.083e-05/0.3694, allocations: 6.766 kB / 398.9 MB, free: 44.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.3696, allocations: 35.78 kB / 398.9 MB, free: 44.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.3697, allocations: 14.84 kB / 398.9 MB, free: 44.79 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: complexPoles_dig.u_pre1:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (complexPoles_dig.y,$PRE.complexPoles_dig.y,$PRE.complexPoles_dig.u_pre1,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1,$PRE.complexPoles_dig.y_pre1,lLag_dig.y,$PRE.lLag_dig.y,fO_dig.y,$PRE.fO_dig.y,int_dig.y,$PRE.int_dig.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002939/0.37, allocations: 148.6 kB / 399.1 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.37, allocations: 24.5 kB / 399.1 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.977e-05/0.3701, allocations: 27.77 kB / 399.1 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3702, allocations: 2.438 kB / 399.1 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.3702, allocations: 4.594 kB / 399.1 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.3702, allocations: 6.016 kB / 399.1 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.3714, allocations: 0.5513 MB / 399.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3714, allocations: 0.5625 kB / 399.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.3717, allocations: 36.2 kB / 399.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3717, allocations: 1.156 kB / 399.7 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.45e-05/0.3717, allocations: 12.58 kB / 399.7 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3717, allocations: 1.891 kB / 399.7 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3717, allocations: 3.938 kB / 399.7 MB, free: 44.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000634/0.3724, allocations: 383.3 kB / 400.1 MB, free: 43.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.169e-05/0.3725, allocations: 98.39 kB / 400.2 MB, free: 43.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/0.3725, allocations: 12.69 kB / 400.2 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.3727, allocations: 11.58 kB / 400.2 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.845e-05/0.3728, allocations: 14.91 kB / 400.2 MB, free: 43.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.3728, allocations: 11.59 kB / 400.3 MB, free: 43.85 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.373, allocations: 186.6 kB / 400.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.373, allocations: 0 / 400.4 MB, free: 43.74 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004652/0.3735, allocations: 82.28 kB / 400.5 MB, free: 43.72 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (int.y,fO.y,lLag.dy,complexPoles.y,complexPoles.dy) * Number of discrete variables: 10 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,int_dig.y,fO_dig.y,lLag_dig.y,complexPoles_dig.y,complexPoles_dig.u_pre1,complexPoles_dig.y_pre1) * Number of discrete states: 10 (complexPoles_dig.u,complexPoles_dig.u_pre1,complexPoles_dig.y,complexPoles_dig.y_pre1,lLag_dig.u,lLag_dig.y,fO_dig.u,fO_dig.y,int_dig.u,int_dig.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002682/0.3738, allocations: 161.8 kB / 400.7 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004115/0.3742, allocations: 165.1 kB / 400.8 MB, free: 43.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3742, allocations: 0.9375 kB / 400.8 MB, free: 43.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001872/0.3744, allocations: 85.28 kB / 400.9 MB, free: 43.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.3748, allocations: 53.05 kB / 401 MB, free: 43.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.376, allocations: 0.5111 MB / 401.5 MB, free: 43.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.3762, allocations: 0.7484 MB / 402.2 MB, free: 42.47 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.3763, allocations: 29.97 kB / 402.3 MB, free: 42.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.006e-05/0.3764, allocations: 22.72 kB / 402.3 MB, free: 42.45 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3764, allocations: 0 / 402.3 MB, free: 42.45 MB / 318.1 MB Notification: Performance of Templates: time 0.007017/0.3834, allocations: 3.036 MB / 405.3 MB, free: 40.95 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)