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.005972/0.005972, allocations: 98.64 kB / 15.73 MB, free: 6.449 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.001186/0.001186, allocations: 197.3 kB / 16.68 MB, free: 6.348 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.788/1.788, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05971/0.05971, allocations: 10.73 MB / 280.6 MB, free: 10.45 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.002189/0.002189, allocations: 64.12 kB / 390.8 MB, free: 5.047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5046/0.5068, allocations: 49.01 MB / 439.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.Basic): time 0.004914/0.5118, allocations: 1.848 MB / 441.7 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.5136, allocations: 0.6064 MB / 442.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.5139, allocations: 1.375 kB / 442.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.5141, allocations: 17.67 kB / 442.3 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.5145, allocations: 38.64 kB / 442.4 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.516, allocations: 176 kB / 442.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005781/0.5166, allocations: 207.1 kB / 442.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.5169, allocations: 42.88 kB / 442.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.5171, allocations: 89.52 kB / 442.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000232/0.5173, allocations: 103.7 kB / 443 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.5174, allocations: 17.56 kB / 443 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004897/0.5179, allocations: 157.5 kB / 443.1 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.906e-05/0.518, allocations: 57.92 kB / 443.2 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.5181, allocations: 95.08 kB / 443.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006726/0.5188, allocations: 317.7 kB / 443.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.5188, allocations: 1.438 kB / 443.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.5189, allocations: 0 / 443.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.5189, allocations: 0 / 443.6 MB, free: 2.988 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.001085/0.52, allocations: 0.5635 MB / 444.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.022e-05/0.52, allocations: 13.36 kB / 444.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.5202, allocations: 35.67 kB / 444.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.5206, allocations: 270 kB / 444.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.5206, allocations: 10.16 kB / 444.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.266e-05/0.5207, allocations: 18.3 kB / 444.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.5212, allocations: 173 kB / 444.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.046e-05/0.5212, allocations: 1.469 kB / 444.7 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/0.5213, allocations: 9.922 kB / 444.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.5213, allocations: 6.688 kB / 444.7 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.5215, allocations: 65.56 kB / 444.8 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.5229, allocations: 0.5192 MB / 445.3 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/0.5233, allocations: 142.7 kB / 445.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001881/0.5235, allocations: 62.81 kB / 445.5 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.5235, allocations: 7.172 kB / 445.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005055/0.524, allocations: 137.8 kB / 445.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.134e-06/0.5241, allocations: 0 / 445.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.000849/0.5249, allocations: 272.1 kB / 445.9 MB, free: 1.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.525, allocations: 160.2 kB / 446 MB, free: 1.227 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004163/0.5255, allocations: 266.7 kB / 446.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.5255, allocations: 34.61 kB / 446.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.5257, allocations: 147.9 kB / 446.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.986e-05/0.5257, allocations: 73.94 kB / 446.6 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.5259, allocations: 56.47 kB / 446.6 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.526, allocations: 339.9 kB / 446.9 MB, free: 496 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.5262, allocations: 52.47 kB / 447 MB, free: 480 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.5265, allocations: 186.4 kB / 447.2 MB, free: 288 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004846/0.527, allocations: 236.2 kB / 447.4 MB, free: 88 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.527, allocations: 2.156 kB / 447.4 MB, free: 88 kB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007696/0.5278, allocations: 277.2 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/0.5279, allocations: 6 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.5279, allocations: 3.625 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.006e-05/0.5279, allocations: 6.484 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.5283, allocations: 53.91 kB / 447.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.442e-05/0.5284, allocations: 11.28 kB / 447.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.5287, allocations: 36.25 kB / 447.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.5287, allocations: 15.12 kB / 447.8 MB, free: 15.92 MB / 334.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.000291/0.529, allocations: 148.7 kB / 447.9 MB, free: 15.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.707e-05/0.5291, allocations: 29.8 kB / 448 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.424e-05/0.5292, allocations: 27.08 kB / 448 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.5292, allocations: 6.344 kB / 448 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.5292, allocations: 0.8438 kB / 448 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.5292, allocations: 5.672 kB / 448 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.5304, allocations: 0.5398 MB / 448.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.5304, allocations: 1.156 kB / 448.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.5308, allocations: 35.64 kB / 448.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.5308, allocations: 0.9375 kB / 448.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/0.5308, allocations: 9.328 kB / 448.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.5308, allocations: 1.094 kB / 448.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.5308, allocations: 8.547 kB / 448.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.5319, allocations: 386.1 kB / 449 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.532, allocations: 105.4 kB / 449.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.5321, allocations: 13.27 kB / 449.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/0.5323, allocations: 16.12 kB / 449.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.5324, allocations: 14.64 kB / 449.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.66e-05/0.5325, allocations: 15.48 kB / 449.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003535/0.5328, allocations: 186.6 kB / 449.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5328, allocations: 1.312 kB / 449.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006709/0.5335, allocations: 78.14 kB / 449.4 MB, free: 14.83 MB / 334.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.0003453/0.5339, allocations: 160.5 kB / 449.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005881/0.5345, allocations: 171.7 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5345, allocations: 1.344 kB / 449.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.5347, allocations: 79.7 kB / 449.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.5353, allocations: 57.56 kB / 449.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/0.5372, allocations: 0.5227 MB / 450.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006449/0.5378, allocations: 0.7464 MB / 451.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001639/0.538, allocations: 27.94 kB / 451.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.5381, allocations: 20.97 kB / 451.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5381, allocations: 9.5 kB / 451.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of Templates: time 0.01118/0.5493, allocations: 3.063 MB / 454.3 MB, free: 11.95 MB / 334.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)