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.001496/0.001496, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002818/0.002818, allocations: 191.4 kB / 16.25 MB, free: 6.629 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.488/1.488, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06201/0.06201, allocations: 10.74 MB / 280.2 MB, free: 10.67 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.001434/0.001434, allocations: 71.83 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09307, allocations: 49.02 MB / 389.2 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.002995/0.0961, allocations: 1.822 MB / 391 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008913/0.09701, allocations: 0.6243 MB / 391.6 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.779e-05/0.09711, allocations: 7.938 kB / 391.6 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.09724, allocations: 11.86 kB / 391.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.605e-05/0.09732, allocations: 27.78 kB / 391.7 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.09756, allocations: 75.86 kB / 391.7 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.0978, allocations: 207.4 kB / 391.9 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.09793, allocations: 41.83 kB / 392 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.565e-05/0.09803, allocations: 79.69 kB / 392.1 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.09814, allocations: 91.59 kB / 392.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.09818, allocations: 16 kB / 392.2 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.698e-05/0.09822, allocations: 20 kB / 392.2 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.166e-05/0.09827, allocations: 39.83 kB / 392.2 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.247e-05/0.09836, allocations: 87.45 kB / 392.3 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.09855, allocations: 163.4 kB / 392.5 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09856, allocations: 0 / 392.5 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.09857, allocations: 0 / 392.5 MB, free: 3.172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.09858, allocations: 0 / 392.5 MB, free: 3.172 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.001039/0.09962, allocations: 0.5717 MB / 393 MB, free: 2.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.09967, allocations: 11.89 kB / 393 MB, free: 2.531 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.881e-05/0.09973, allocations: 46.69 kB / 393.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.751e-05/0.09979, allocations: 28.64 kB / 393.1 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.1001, allocations: 243.8 kB / 393.4 MB, free: 2.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.1002, allocations: 67.97 kB / 393.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.692e-05/0.1002, allocations: 16.38 kB / 393.4 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004954/0.1007, allocations: 192.6 kB / 393.6 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1007, allocations: 0 / 393.6 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.1008, allocations: 11.98 kB / 393.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1008, allocations: 0 / 393.6 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005637/0.1014, allocations: 155.8 kB / 393.8 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009125/0.1023, allocations: 0.645 MB / 394.4 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005583/0.1028, allocations: 154.4 kB / 394.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.1031, allocations: 76.78 kB / 394.7 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.1032, allocations: 8.125 kB / 394.7 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004401/0.1036, allocations: 167.1 kB / 394.8 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 4.047e-06/0.1036, allocations: 3.984 kB / 394.8 MB, free: 0.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009481/0.1046, allocations: 285.3 kB / 395.1 MB, free: 304 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.1046, allocations: 67.33 kB / 395.2 MB, free: 224 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.1048, allocations: 195.8 kB / 395.4 MB, free: 20 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.1048, allocations: 37.64 kB / 395.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.1049, allocations: 132.1 kB / 395.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.105, allocations: 43.53 kB / 395.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.899e-05/0.105, allocations: 49.7 kB / 395.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1052, allocations: 330.8 kB / 396 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.1055, allocations: 83.92 kB / 396 MB, free: 15.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.1058, allocations: 149.8 kB / 396.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000584/0.1064, allocations: 265.1 kB / 396.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1064, allocations: 0 / 396.4 MB, free: 14.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007531/0.1072, allocations: 344.5 kB / 396.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.1072, allocations: 59.41 kB / 396.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1072, allocations: 7.984 kB / 396.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.1072, allocations: 0 / 396.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.1076, allocations: 68.08 kB / 396.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.1077, allocations: 0 / 396.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002668/0.1079, allocations: 47.8 kB / 397 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.108, allocations: 4 kB / 397 MB, free: 14.32 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,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.1081, allocations: 133.8 kB / 397.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.957e-05/0.1081, allocations: 27.75 kB / 397.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.082e-05/0.1082, allocations: 25.45 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1082, allocations: 0 / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1082, allocations: 4 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1082, allocations: 0 / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001999/0.1084, allocations: 249.5 kB / 397.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1084, allocations: 3.938 kB / 397.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.1088, allocations: 47.95 kB / 397.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1088, allocations: 4 kB / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.885e-05/0.1089, allocations: 8 kB / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1089, allocations: 0 / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1089, allocations: 0 / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009649/0.1098, allocations: 352.5 kB / 397.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/0.1099, allocations: 92.89 kB / 397.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/0.1099, allocations: 4 kB / 397.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.1102, allocations: 31.95 kB / 397.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.38e-05/0.1103, allocations: 31.95 kB / 398 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.1103, allocations: 8.062 kB / 398 MB, free: 13.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1104, allocations: 145.5 kB / 398.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1104, allocations: 0 / 398.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002342/0.1106, allocations: 36 kB / 398.1 MB, free: 13.04 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 (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.001216/0.1119, allocations: 0.8814 MB / 399 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007653/0.1126, allocations: 331.3 kB / 399.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1126, allocations: 0 / 399.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.113, allocations: 92.28 kB / 399.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/0.1132, allocations: 35.77 kB / 399.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.1166, allocations: 2.34 MB / 401.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.1169, allocations: 0.7241 MB / 402.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.117, allocations: 17.55 kB / 402.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.1171, allocations: 59.36 kB / 402.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1171, allocations: 0 / 402.6 MB, free: 8.367 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/0.1465, allocations: 4.042 MB / 406.6 MB, free: 4.422 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.1468, allocations: 232.4 kB / 406.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.178, allocations: 3.75 kB / 406.9 MB, free: 4.168 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/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)