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.001209/0.001209, allocations: 104.9 kB / 16.27 MB, free: 5.895 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.001247/0.001247, allocations: 185 kB / 17.19 MB, free: 5.535 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.173/1.173, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05318/0.05318, allocations: 10.75 MB / 281.2 MB, free: 1.371 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.001379/0.001379, allocations: 72.31 kB / 341.2 MB, free: 5.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1929, allocations: 49 MB / 390.2 MB, free: 49.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.002562/0.1955, allocations: 1.833 MB / 392 MB, free: 48.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008257/0.1963, allocations: 0.6122 MB / 392.7 MB, free: 47.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.991e-05/0.1964, allocations: 5.344 kB / 392.7 MB, free: 47.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.954e-05/0.1964, allocations: 15.75 kB / 392.7 MB, free: 47.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.1965, allocations: 30.36 kB / 392.7 MB, free: 47.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004531/0.197, allocations: 189.5 kB / 392.9 MB, free: 47.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.1972, allocations: 204 kB / 393.1 MB, free: 47.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1974, allocations: 48.14 kB / 393.1 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.604e-05/0.1974, allocations: 85.31 kB / 393.2 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.1975, allocations: 103.1 kB / 393.3 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.1976, allocations: 18.16 kB / 393.3 MB, free: 47.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001991/0.1978, allocations: 154.1 kB / 393.5 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.57e-05/0.1978, allocations: 53.19 kB / 393.5 MB, free: 47.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.15e-05/0.1979, allocations: 106.6 kB / 393.7 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003152/0.1982, allocations: 295.6 kB / 393.9 MB, free: 47.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1982, allocations: 4 kB / 393.9 MB, free: 47.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1983, allocations: 0 / 393.9 MB, free: 47.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.1983, allocations: 2.125 kB / 393.9 MB, free: 47.32 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.0006623/0.1989, allocations: 0.5626 MB / 394.5 MB, free: 46.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.199, allocations: 13.48 kB / 394.5 MB, free: 46.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.2e-05/0.199, allocations: 27.2 kB / 394.5 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.1993, allocations: 260.9 kB / 394.8 MB, free: 46.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.1993, allocations: 14.48 kB / 394.8 MB, free: 46.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.751e-05/0.1993, allocations: 24.59 kB / 394.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.1996, allocations: 174.4 kB / 395 MB, free: 46.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.1996, allocations: 192 / 395 MB, free: 46.44 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1997, allocations: 10.25 kB / 395 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1997, allocations: 2.75 kB / 395 MB, free: 46.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001634/0.1998, allocations: 70.23 kB / 395.1 MB, free: 46.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007971/0.2006, allocations: 0.5205 MB / 395.6 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.2009, allocations: 138.6 kB / 395.7 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.201, allocations: 64.58 kB / 395.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.2011, allocations: 2.234 kB / 395.8 MB, free: 45.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.2013, allocations: 146.4 kB / 396 MB, free: 45.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.914e-06/0.2013, allocations: 0 / 396 MB, free: 45.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004946/0.2018, allocations: 263.8 kB / 396.2 MB, free: 45.76 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.2019, allocations: 164.7 kB / 396.4 MB, free: 45.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.2021, allocations: 262.5 kB / 396.6 MB, free: 45.42 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.085e-05/0.2021, allocations: 38.55 kB / 396.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.843e-05/0.2022, allocations: 155.4 kB / 396.8 MB, free: 45.25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.2023, allocations: 61.14 kB / 396.9 MB, free: 45.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.985e-05/0.2023, allocations: 62.61 kB / 396.9 MB, free: 45.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.385e-05/0.2024, allocations: 336.6 kB / 397.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.2025, allocations: 53.25 kB / 397.3 MB, free: 44.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/0.2027, allocations: 187.6 kB / 397.5 MB, free: 44.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002721/0.2029, allocations: 241.5 kB / 397.7 MB, free: 44.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.2029, allocations: 5.594 kB / 397.7 MB, free: 44.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003681/0.2033, allocations: 266.7 kB / 398 MB, free: 44.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.2033, allocations: 6.062 kB / 398 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2034, allocations: 4.891 kB / 398 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.2034, allocations: 9.094 kB / 398 MB, free: 44.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.2036, allocations: 58.89 kB / 398.1 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.2036, allocations: 6.109 kB / 398.1 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.2038, allocations: 40.11 kB / 398.1 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.2038, allocations: 15.12 kB / 398.1 MB, free: 44.26 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.0001233/0.2039, allocations: 147.2 kB / 398.3 MB, free: 44.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/0.204, allocations: 25.69 kB / 398.3 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.204, allocations: 31.66 kB / 398.3 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.2041, allocations: 1.312 kB / 398.3 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.2041, allocations: 1.875 kB / 398.3 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2041, allocations: 4.594 kB / 398.4 MB, free: 44.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000552/0.2046, allocations: 0.5478 MB / 398.9 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2046, allocations: 1.344 kB / 398.9 MB, free: 43.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002045/0.2049, allocations: 39.34 kB / 398.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.2049, allocations: 1.406 kB / 398.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.2049, allocations: 9.953 kB / 398.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2049, allocations: 1.094 kB / 399 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2049, allocations: 0 / 399 MB, free: 43.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004983/0.2054, allocations: 392.7 kB / 399.3 MB, free: 43.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.576e-05/0.2055, allocations: 97.09 kB / 399.4 MB, free: 43.35 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.2055, allocations: 16.73 kB / 399.4 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.2057, allocations: 16.41 kB / 399.5 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.231e-05/0.2057, allocations: 9.594 kB / 399.5 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.2057, allocations: 13.05 kB / 399.5 MB, free: 43.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001401/0.2059, allocations: 184.5 kB / 399.7 MB, free: 43.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2059, allocations: 3.938 kB / 399.7 MB, free: 43.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.2062, allocations: 83.47 kB / 399.7 MB, free: 43.19 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.0001745/0.2064, allocations: 157.8 kB / 399.9 MB, free: 43.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003339/0.2067, allocations: 179.2 kB / 400.1 MB, free: 43.03 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2068, allocations: 0.6562 kB / 400.1 MB, free: 43.03 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.2069, allocations: 73.53 kB / 400.2 MB, free: 43.01 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003624/0.2073, allocations: 59.56 kB / 400.2 MB, free: 42.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009615/0.2082, allocations: 0.5344 MB / 400.7 MB, free: 42.66 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.2084, allocations: 0.747 MB / 401.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.2085, allocations: 24.61 kB / 401.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2085, allocations: 0 / 401.5 MB, free: 41.96 MB / 318.1 MB Notification: Performance of Templates: time 0.004377/0.2129, allocations: 3.224 MB / 404.7 MB, free: 40.41 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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.Basic.pipe 2>&1)