Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.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.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",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.001017/0.001018, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001005/0.001005, allocations: 177.3 kB / 15.94 MB, free: 228 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.691/1.691, allocations: 205.4 MB / 222.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05429/0.05429, allocations: 10.73 MB / 281.1 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.0005262/0.0005263, allocations: 16 kB / 341.7 MB, free: 23.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09081/0.09135, allocations: 50.02 MB / 391.7 MB, free: 5.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.001709/0.09309, allocations: 1.421 MB / 393.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008643/0.09398, allocations: 0.5935 MB / 393.7 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.899e-05/0.09407, allocations: 4 kB / 393.7 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.231e-05/0.0941, allocations: 11.86 kB / 393.7 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.09422, allocations: 31.88 kB / 393.8 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.09444, allocations: 75.83 kB / 393.8 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.09462, allocations: 119.6 kB / 394 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.795e-05/0.09473, allocations: 25.95 kB / 394 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.945e-05/0.09484, allocations: 79.67 kB / 394.1 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.09495, allocations: 67.67 kB / 394.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.09498, allocations: 12 kB / 394.1 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.462e-05/0.09501, allocations: 8 kB / 394.1 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.09505, allocations: 27.89 kB / 394.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.759e-05/0.09511, allocations: 53.58 kB / 394.2 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001217/0.09524, allocations: 111.7 kB / 394.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.09525, allocations: 0 / 394.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.09526, allocations: 3.938 kB / 394.3 MB, free: 3.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.09527, allocations: 0 / 394.3 MB, free: 3.031 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009609/0.09623, allocations: 0.5644 MB / 394.9 MB, free: 2.406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.09628, allocations: 16.02 kB / 394.9 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.09634, allocations: 42.56 kB / 395 MB, free: 2.34 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.474e-05/0.0964, allocations: 23.77 kB / 395 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.09667, allocations: 242.5 kB / 395.2 MB, free: 2.039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.81e-05/0.09673, allocations: 63.41 kB / 395.3 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.09678, allocations: 16 kB / 395.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.09727, allocations: 208.6 kB / 395.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.09729, allocations: 3.938 kB / 395.5 MB, free: 1.727 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.09731, allocations: 4 kB / 395.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.09732, allocations: 7.953 kB / 395.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006047/0.09793, allocations: 187.8 kB / 395.7 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008901/0.09883, allocations: 0.6683 MB / 396.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/0.09946, allocations: 198.4 kB / 396.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.09948, allocations: 0 / 396.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004667/0.09996, allocations: 175.2 kB / 396.7 MB, free: 428 kB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 3.567e-06/0.09997, allocations: 3.984 kB / 396.7 MB, free: 424 kB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.00102/0.101, allocations: 349.8 kB / 397.1 MB, free: 68 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.1011, allocations: 63.47 kB / 397.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.1012, allocations: 199.7 kB / 397.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.1013, allocations: 41.69 kB / 397.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.848e-05/0.1013, allocations: 128.2 kB / 397.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.1014, allocations: 35.55 kB / 397.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.305e-05/0.1014, allocations: 4 kB / 397.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.1015, allocations: 334.8 kB / 397.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/0.1018, allocations: 107.9 kB / 398 MB, free: 15.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.1022, allocations: 157.9 kB / 398.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.1025, allocations: 167.2 kB / 398.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1026, allocations: 3.938 kB / 398.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007804/0.1033, allocations: 376.5 kB / 398.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.1034, allocations: 59.41 kB / 398.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1034, allocations: 4.125 kB / 398.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1034, allocations: 8 kB / 398.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004095/0.1038, allocations: 67.88 kB / 398.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1039, allocations: 4 kB / 398.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.1041, allocations: 59.8 kB / 398.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.1042, allocations: 8 kB / 398.9 MB, free: 14.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.Input.T_start,Input.T_start,$PRE.Input.count,Input.count,Itr.ts,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001026/0.1043, allocations: 137.7 kB / 399 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.358e-05/0.1043, allocations: 15.81 kB / 399 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.459e-05/0.1044, allocations: 21.52 kB / 399 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1044, allocations: 4 kB / 399 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1044, allocations: 0 / 399 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-06/0.1044, allocations: 4 kB / 399 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.1046, allocations: 245.5 kB / 399.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1046, allocations: 3.953 kB / 399.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/0.105, allocations: 59.95 kB / 399.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.105, allocations: 3.938 kB / 399.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.105, allocations: 0 / 399.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.105, allocations: 4 kB / 399.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1051, allocations: 0 / 399.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.1061, allocations: 412.6 kB / 399.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1061, allocations: 96.91 kB / 399.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.061e-05/0.1062, allocations: 4 kB / 399.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002385/0.1064, allocations: 39.95 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.953e-05/0.1065, allocations: 27.95 kB / 399.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.1065, allocations: 7.984 kB / 399.9 MB, free: 13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.427e-05/0.1066, allocations: 145.6 kB / 400.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1066, allocations: 0 / 400.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002382/0.1069, allocations: 36 kB / 400.1 MB, free: 12.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001232/0.1081, allocations: 0.9391 MB / 401 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007435/0.1089, allocations: 346.5 kB / 401.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.1089, allocations: 4.375 kB / 401.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.1092, allocations: 119.8 kB / 401.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002055/0.1094, allocations: 27.77 kB / 401.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.1122, allocations: 2.146 MB / 403.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.1124, allocations: 0.7283 MB / 404.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.791e-05/0.1125, allocations: 21.53 kB / 404.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.166e-05/0.1126, allocations: 51.42 kB / 404.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1127, allocations: 4 kB / 404.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01466/0.1273, allocations: 3.79 MB / 408.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001866/0.1275, allocations: 221.1 kB / 408.5 MB, free: 4.379 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/1.865, allocations: 0 / 408.5 MB, free: 4.379 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1) Environment - environmentSimulation: