Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.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.MathOperations.Examples.SetPointGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration") translateModel(IndustrialControlSystems.MathOperations.Examples.SetPointGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 106.7 kB / 16.41 MB, free: 6.457 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.001082/0.001082, allocations: 192.3 kB / 17.35 MB, free: 5.715 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.356/1.356, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06036/0.06036, allocations: 10.73 MB / 281.3 MB, free: 1.281 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.001377/0.001377, allocations: 68.86 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07958/0.08097, allocations: 49.02 MB / 440.5 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.MathOperations.Examples.SetPointGeneration): time 0.003032/0.08403, allocations: 2.559 MB / 443.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.08591, allocations: 1.474 MB / 444.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.08613, allocations: 23.81 kB / 444.6 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008598/0.087, allocations: 302.7 kB / 444.9 MB, free: 15.45 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005073/0.08751, allocations: 230.8 kB / 445.1 MB, free: 15.22 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/MathOperations/RealType/Signals/SmoothThoothSignal.mo:39:3-48:10:writable] Warning: Conditional component 'u' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0009184/0.08844, allocations: 433.7 kB / 445.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005969/0.08905, allocations: 0.5336 MB / 446 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.08925, allocations: 93.64 kB / 446.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.08953, allocations: 235 kB / 446.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.0898, allocations: 226.8 kB / 446.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.38e-05/0.08987, allocations: 32 kB / 446.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003657/0.09024, allocations: 247.6 kB / 446.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.0904, allocations: 123.5 kB / 447 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.09059, allocations: 214.6 kB / 447.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006354/0.09124, allocations: 0.6228 MB / 447.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.09125, allocations: 0 / 447.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.09126, allocations: 3.938 kB / 447.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.157e-05/0.09129, allocations: 0 / 447.8 MB, free: 12.48 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001238/0.09253, allocations: 0.9331 MB / 448.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.09258, allocations: 11.89 kB / 448.8 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.0927, allocations: 72.17 kB / 448.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000763/0.09347, allocations: 0.5191 MB / 449.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.09352, allocations: 16.44 kB / 449.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.123e-05/0.09357, allocations: 27.98 kB / 449.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006553/0.09424, allocations: 421.8 kB / 449.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.09426, allocations: 4 kB / 449.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.09431, allocations: 15.98 kB / 449.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.09432, allocations: 8 kB / 449.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000434/0.09476, allocations: 180.4 kB / 450 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.09636, allocations: 2.156 MB / 452.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005625/0.09693, allocations: 299.7 kB / 452.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002586/0.0972, allocations: 121.2 kB / 452.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006101/0.1033, allocations: 7.388 MB / 460 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005148/0.1038, allocations: 328.7 kB / 460.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.184e-06/0.1039, allocations: 0 / 460.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001066/0.1049, allocations: 0.4978 MB / 460.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/0.1051, allocations: 435.2 kB / 461.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006545/0.1058, allocations: 0.6094 MB / 461.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.1058, allocations: 33.7 kB / 461.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.1061, allocations: 268.5 kB / 462.1 MB, free: 12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/0.1061, allocations: 82.98 kB / 462.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.1063, allocations: 102 kB / 462.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1065, allocations: 382.8 kB / 462.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.1067, allocations: 100.9 kB / 462.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.1072, allocations: 350.9 kB / 463.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.1084, allocations: 0.6264 MB / 463.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.1084, allocations: 4 kB / 463.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009244/0.1094, allocations: 0.5175 MB / 464.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1094, allocations: 34.36 kB / 464.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1094, allocations: 12 kB / 464.3 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.1095, allocations: 11.94 kB / 464.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.1097, allocations: 79.83 kB / 464.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1098, allocations: 15.94 kB / 464.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000479/0.1102, allocations: 71.55 kB / 464.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.1103, allocations: 20 kB / 464.5 MB, free: 9.387 MB / 350.1 MB Warning: Assuming fixed start value for the following 11 variables: smoothStepSignal.St:DISCRETE(start = false fixed = true protected = true ) type: Boolean smoothStepSignal.StartTime:DISCRETE(start = 0.0 fixed = true protected = true ) type: Real smoothStepSignal.En_d:DISCRETE(fixed = true protected = true ) type: Boolean smoothThoothSignal.Sali:DISCRETE(start = false fixed = true ) type: Boolean smoothThoothSignal.Scendi:DISCRETE(start = false fixed = true ) type: Boolean smoothThoothSignal.td:DISCRETE(fixed = true ) type: Real smoothThoothSignal.ts:DISCRETE(fixed = true ) type: Real smoothThoothSignal.Ed_d:DISCRETE(fixed = true protected = true ) type: Boolean smoothThoothSignal.Es_d:DISCRETE(fixed = true protected = true ) type: Boolean noiseGen.y:DISCRETE(flow=false fixed = true ) "output" type: Real noiseGen.U:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.smoothStepSignal.St,$PRE.smoothStepSignal.StartTime,smoothStepSignal.StartTime,smoothStepSignal.St,$PRE.smoothStepSignal.En_d,smoothStepSignal.En_d,$whenCondition6,$PRE.enFall.combiTimeTable.nextTimeEvent,$whenCondition5,$PRE.enRise.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.smoothThoothSignal.Sali,$PRE.smoothThoothSignal.Scendi,$PRE.smoothThoothSignal.td,$PRE.smoothThoothSignal.ts,smoothThoothSignal.Scendi,smoothThoothSignal.Sali,smoothThoothSignal.td,smoothThoothSignal.ts,$PRE.smoothThoothSignal.Ed_d,enFall.combiTimeTable.nextTimeEventScaled,$PRE.enFall.combiTimeTable.nextTimeEventScaled,enFall.combiTimeTable.nextTimeEvent,smoothThoothSignal.Ed_d,$whenCondition2,$PRE.smoothThoothSignal.Es_d,enRise.combiTimeTable.nextTimeEventScaled,$PRE.enRise.combiTimeTable.nextTimeEventScaled,enRise.combiTimeTable.nextTimeEvent,smoothThoothSignal.Es_d,$whenCondition3,$PRE.noiseGen.y,noiseGen.y,$PRE.noiseGen.U,noiseGen.U,noiseGen.X,$PRE.noiseGen.X,$whenCondition1,smoothThooth_alpha_04.Yfp,smoothThooth_alpha_04.Ufp[1],noiseGen.Yfp,noiseGen.Ufp[1],smoothThoothSignal.Yfp,smoothThoothSignal.Ufp[2],smoothThoothSignal.Ufp[1],smoothStepSignal.Yfp,smoothStepSignal.Ufp[1],smoothThooth_alpha_01.Yfp,smoothThooth_alpha_01.Ufp[1],smoothStep.Yfp,smoothStep.Ufp[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.0003286/0.1106, allocations: 278.7 kB / 464.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.985e-05/0.1107, allocations: 63.25 kB / 464.8 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004953/0.1112, allocations: 278.8 kB / 465.1 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1113, allocations: 4 kB / 465.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1113, allocations: 0 / 465.1 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.1115, allocations: 164.2 kB / 465.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.973e-05/0.1116, allocations: 16 kB / 465.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004148/0.112, allocations: 35.95 kB / 465.3 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.789e-05/0.1121, allocations: 35.94 kB / 465.4 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009738/0.1131, allocations: 0.9039 MB / 466.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001033/0.1141, allocations: 0.9726 MB / 467.2 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003066/0.1144, allocations: 155.9 kB / 467.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004315/0.1149, allocations: 427 kB / 467.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of Backend: time 4.21e-07/0.1149, allocations: 0 / 467.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002241/0.1171, allocations: 0.7457 MB / 468.5 MB, free: 5.348 MB / 350.1 MB Notification: Performance of SimCode: time 0.001481/0.1186, allocations: 1.302 MB / 469.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of Templates: time 0.01448/0.1331, allocations: 8.761 MB / 478.6 MB, free: 11.23 MB / 366.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.sim & ./IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.MathOperations.Examples.SetPointGeneration.pipe 2>&1)