Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.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.TestTrackingLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL",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.001436/0.001436, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001544/0.001545, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.461/1.461, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05878/0.05878, allocations: 10.74 MB / 280.5 MB, free: 10.51 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.00161/0.00161, allocations: 71.83 kB / 340.7 MB, free: 23.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08712, allocations: 49.01 MB / 389.7 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL): time 0.004737/0.09192, allocations: 1.874 MB / 391.5 MB, free: 4.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.09392, allocations: 0.7222 MB / 392.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002161/0.0942, allocations: 11.94 kB / 392.3 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.09434, allocations: 23.67 kB / 392.3 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.09451, allocations: 43.55 kB / 392.3 MB, free: 3.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004519/0.09497, allocations: 135.7 kB / 392.5 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.09541, allocations: 295.1 kB / 392.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.09564, allocations: 64.94 kB / 392.8 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.09589, allocations: 119.6 kB / 392.9 MB, free: 2.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.09615, allocations: 123.4 kB / 393.1 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.116e-05/0.09622, allocations: 20 kB / 393.1 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.495e-05/0.09628, allocations: 27.94 kB / 393.1 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.136e-05/0.09636, allocations: 59.81 kB / 393.2 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.09651, allocations: 107.3 kB / 393.3 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.09682, allocations: 219.4 kB / 393.5 MB, free: 2.285 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.09684, allocations: 4 kB / 393.5 MB, free: 2.281 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.09684, allocations: 0 / 393.5 MB, free: 2.281 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.09687, allocations: 0 / 393.5 MB, free: 2.281 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00126/0.09813, allocations: 0.5978 MB / 394.1 MB, free: 1.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.09818, allocations: 11.89 kB / 394.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.397e-05/0.09827, allocations: 50.73 kB / 394.1 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.245e-05/0.09837, allocations: 32.56 kB / 394.2 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.09875, allocations: 302.3 kB / 394.5 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.349e-05/0.09885, allocations: 105.4 kB / 394.6 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.471e-05/0.09891, allocations: 12 kB / 394.6 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005424/0.09946, allocations: 211.8 kB / 394.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.09948, allocations: 0 / 394.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.09951, allocations: 7.938 kB / 394.8 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.09952, allocations: 7.938 kB / 394.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005567/0.1001, allocations: 168.4 kB / 395 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.1015, allocations: 0.7107 MB / 395.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005599/0.1021, allocations: 178.4 kB / 395.9 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.1024, allocations: 88.8 kB / 395.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.1024, allocations: 4 kB / 396 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005248/0.103, allocations: 171 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.365e-06/0.103, allocations: 4 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001102/0.1041, allocations: 329.2 kB / 396.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.1042, allocations: 55.41 kB / 396.5 MB, free: 15.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.1044, allocations: 240.8 kB / 396.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.1045, allocations: 29.7 kB / 396.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1046, allocations: 148.3 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.812e-05/0.1046, allocations: 51.3 kB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.471e-05/0.1047, allocations: 45.7 kB / 397 MB, free: 14.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1049, allocations: 330.8 kB / 397.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.1052, allocations: 95.92 kB / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003326/0.1056, allocations: 131.2 kB / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/0.1062, allocations: 229 kB / 397.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.1062, allocations: 0 / 397.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007835/0.107, allocations: 314.8 kB / 398.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.51e-05/0.107, allocations: 33.7 kB / 398.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1071, allocations: 0 / 398.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1071, allocations: 3.938 kB / 398.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.1086, allocations: 127.9 kB / 398.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002524/0.1112, allocations: 2.898 MB / 401.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.1114, allocations: 35.8 kB / 401.2 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.1115, allocations: 8 kB / 401.2 MB, free: 9.992 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 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,LLtr.ts,$whenCondition1,LL.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): 20 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001492/0.1116, allocations: 133.8 kB / 401.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.1117, allocations: 19.72 kB / 401.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007322/0.1124, allocations: 279.6 kB / 401.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1124, allocations: 4 kB / 401.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1124, allocations: 0 / 401.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1124, allocations: 7.922 kB / 401.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.1136, allocations: 0.6467 MB / 402.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1136, allocations: 0 / 402.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/0.1149, allocations: 111.8 kB / 402.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1149, allocations: 0 / 402.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.115, allocations: 8 kB / 402.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.115, allocations: 3.938 kB / 402.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.115, allocations: 0 / 402.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.1161, allocations: 462.4 kB / 402.8 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.924e-05/0.1162, allocations: 92.86 kB / 402.9 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.1162, allocations: 11.94 kB / 402.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.1165, allocations: 28.02 kB / 403 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.198e-05/0.1166, allocations: 27.97 kB / 403 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1166, allocations: 7.984 kB / 403 MB, free: 8.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.1167, allocations: 160.5 kB / 403.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1168, allocations: 0 / 403.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.1171, allocations: 47.84 kB / 403.2 MB, free: 7.871 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (LLaw.uF,LLtr.uF,LL.uF) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,LLtr.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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00132/0.1184, allocations: 0.9892 MB / 404.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.1195, allocations: 307.1 kB / 404.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1195, allocations: 0 / 404.5 MB, free: 6.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003379/0.1199, allocations: 116 kB / 404.6 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.1202, allocations: 28.42 kB / 404.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/0.1243, allocations: 2.564 MB / 407.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.1246, allocations: 0.748 MB / 407.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001275/0.1247, allocations: 21.95 kB / 408 MB, free: 2.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.1249, allocations: 79.41 kB / 408 MB, free: 2.855 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1249, allocations: 4 kB / 408 MB, free: 2.852 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.1518, allocations: 5.039 MB / 413.1 MB, free: 13.89 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.45, allocations: 16.12 kB / 413.1 MB, free: 13.88 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingLL.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingLL.pipe 2>&1)