Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007588/0.0007589, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008699/0.0008699, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.187/1.187, allocations: 205.4 MB / 222.1 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05257/0.05257, allocations: 10.75 MB / 281.1 MB, free: 10.41 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.0004541/0.0004541, allocations: 15.98 kB / 341.7 MB, free: 23.71 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07185/0.07232, allocations: 50.01 MB / 391.7 MB, free: 5.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.001685/0.07404, allocations: 1.398 MB / 393.1 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007595/0.07481, allocations: 0.5623 MB / 393.7 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.359e-05/0.0749, allocations: 11.94 kB / 393.7 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.71e-05/0.075, allocations: 15.86 kB / 393.7 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.977e-05/0.07506, allocations: 23.78 kB / 393.7 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001864/0.07526, allocations: 47.89 kB / 393.8 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.07543, allocations: 155.5 kB / 393.9 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.286e-05/0.07553, allocations: 29.45 kB / 394 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.07564, allocations: 59.72 kB / 394 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.843e-05/0.07574, allocations: 67.66 kB / 394.1 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.07577, allocations: 8 kB / 394.1 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.786e-05/0.07579, allocations: 4 kB / 394.1 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.974e-05/0.07583, allocations: 15.92 kB / 394.1 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.221e-05/0.07587, allocations: 49.64 kB / 394.2 MB, free: 3.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.674e-05/0.07598, allocations: 84.03 kB / 394.3 MB, free: 3.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.07599, allocations: 12 kB / 394.3 MB, free: 3.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.076, allocations: 0 / 394.3 MB, free: 3.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.07601, allocations: 0 / 394.3 MB, free: 3.078 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007542/0.07677, allocations: 0.492 MB / 394.8 MB, free: 2.535 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.07681, allocations: 8.031 kB / 394.8 MB, free: 2.527 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.07686, allocations: 50.45 kB / 394.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.0769, allocations: 19.8 kB / 394.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.07715, allocations: 234.7 kB / 395.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.397e-05/0.07723, allocations: 59.41 kB / 395.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.07725, allocations: 8 kB / 395.1 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.0776, allocations: 149.5 kB / 395.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.07762, allocations: 7.938 kB / 395.3 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.07764, allocations: 3.938 kB / 395.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.07765, allocations: 0 / 395.3 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.07809, allocations: 155.9 kB / 395.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006631/0.07876, allocations: 448.5 kB / 395.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.07918, allocations: 154.4 kB / 396 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.0794, allocations: 76.8 kB / 396.1 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.07943, allocations: 4 kB / 396.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003317/0.07977, allocations: 139.2 kB / 396.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.07978, allocations: 0 / 396.2 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007334/0.08052, allocations: 285.2 kB / 396.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.08056, allocations: 51.41 kB / 396.6 MB, free: 0.5586 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter Input.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.08072, allocations: 186.9 kB / 396.8 MB, free: 376 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.08075, allocations: 33.7 kB / 396.8 MB, free: 336 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.395e-05/0.08083, allocations: 120.2 kB / 396.9 MB, free: 212 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.925e-05/0.08087, allocations: 31.78 kB / 396.9 MB, free: 180 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.336e-06/0.08088, allocations: 0 / 396.9 MB, free: 180 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.081, allocations: 326.8 kB / 397.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.08124, allocations: 75.94 kB / 397.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.08149, allocations: 111.4 kB / 397.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.08174, allocations: 105.6 kB / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.08175, allocations: 0 / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005481/0.0823, allocations: 266.8 kB / 397.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.08234, allocations: 33.7 kB / 397.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.08235, allocations: 4.094 kB / 397.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.08237, allocations: 4 kB / 397.8 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.08254, allocations: 31.97 kB / 397.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.08256, allocations: 7.984 kB / 397.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.08274, allocations: 43.81 kB / 397.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.815e-05/0.08276, allocations: 8 kB / 397.9 MB, free: 15.13 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,Ptr.ts,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.724e-05/0.08287, allocations: 129.8 kB / 398.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.151e-05/0.08289, allocations: 15.77 kB / 398.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/0.08294, allocations: 17.39 kB / 398.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.08294, allocations: 0 / 398.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.08295, allocations: 4 kB / 398.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.08296, allocations: 0 / 398.1 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.08314, allocations: 221.6 kB / 398.3 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.08315, allocations: 4 kB / 398.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.08329, allocations: 31.97 kB / 398.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.0833, allocations: 3.953 kB / 398.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.08332, allocations: 4 kB / 398.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.08333, allocations: 0 / 398.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.08334, allocations: 4 kB / 398.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005097/0.08386, allocations: 237.1 kB / 398.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.08391, allocations: 88.92 kB / 398.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.44e-05/0.08394, allocations: 3.953 kB / 398.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.08412, allocations: 43.95 kB / 398.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.44e-05/0.08419, allocations: 23.91 kB / 398.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.0842, allocations: 3.938 kB / 398.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.45e-05/0.0843, allocations: 132.1 kB / 398.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08431, allocations: 0 / 398.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.08452, allocations: 27.94 kB / 398.9 MB, free: 14.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007518/0.08528, allocations: 0.7645 MB / 399.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005166/0.08581, allocations: 231.2 kB / 399.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.08582, allocations: 192 / 399.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002477/0.08608, allocations: 91.88 kB / 400 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.0863, allocations: 28.12 kB / 400 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.088, allocations: 0.9976 MB / 401 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.08825, allocations: 0.7162 MB / 401.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.182e-05/0.08833, allocations: 13.08 kB / 401.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.651e-05/0.08841, allocations: 39.42 kB / 401.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.08842, allocations: 7.875 kB / 401.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01243/0.1009, allocations: 3.009 MB / 404.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.1011, allocations: 223.2 kB / 405 MB, free: 7.918 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.56/1.661, allocations: 3.75 kB / 405 MB, free: 7.918 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1) Environment - environmentSimulation: