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.001213/0.001213, allocations: 108 kB / 15.61 MB, free: 152 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.001189/0.001189, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.547/1.547, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05819/0.05819, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001671/0.001671, allocations: 63.91 kB / 340.7 MB, free: 23.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09665/0.09833, allocations: 49.01 MB / 389.7 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003001/0.1014, allocations: 1.761 MB / 391.4 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1027, allocations: 0.6281 MB / 392.1 MB, free: 3.738 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1029, allocations: 11.94 kB / 392.1 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.103, allocations: 15.8 kB / 392.1 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.1032, allocations: 35.66 kB / 392.1 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003369/0.1035, allocations: 87.81 kB / 392.2 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003553/0.1039, allocations: 211.2 kB / 392.4 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.1041, allocations: 37.88 kB / 392.4 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.1043, allocations: 87.69 kB / 392.5 MB, free: 3.262 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1045, allocations: 83.61 kB / 392.6 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.154e-05/0.1045, allocations: 16 kB / 392.6 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.66e-05/0.1046, allocations: 16 kB / 392.6 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.148e-05/0.1047, allocations: 43.81 kB / 392.7 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.1048, allocations: 79.53 kB / 392.8 MB, free: 3.027 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.1051, allocations: 167.4 kB / 392.9 MB, free: 2.863 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1051, allocations: 0 / 392.9 MB, free: 2.863 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1051, allocations: 0 / 392.9 MB, free: 2.863 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.1052, allocations: 0 / 392.9 MB, free: 2.863 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.001634/0.1068, allocations: 0.5684 MB / 393.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.652e-05/0.1069, allocations: 11.89 kB / 393.5 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.056e-05/0.1069, allocations: 46.73 kB / 393.6 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.79e-05/0.107, allocations: 28.59 kB / 393.6 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/0.1075, allocations: 243.8 kB / 393.8 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.1076, allocations: 71.95 kB / 393.9 MB, free: 1.781 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.1077, allocations: 24.36 kB / 393.9 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007829/0.1084, allocations: 192.6 kB / 394.1 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.1085, allocations: 4 kB / 394.1 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.1085, allocations: 4 kB / 394.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1085, allocations: 4 kB / 394.1 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009857/0.1095, allocations: 147.8 kB / 394.3 MB, free: 1.398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.1109, allocations: 0.6449 MB / 394.9 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009452/0.1119, allocations: 158.4 kB / 395.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004768/0.1124, allocations: 76.78 kB / 395.1 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.1124, allocations: 4 kB / 395.1 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007724/0.1132, allocations: 171.2 kB / 395.3 MB, free: 276 kB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 2.605e-06/0.1132, allocations: 0 / 395.3 MB, free: 276 kB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001647/0.1149, allocations: 293.3 kB / 395.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.115, allocations: 55.41 kB / 395.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.1152, allocations: 199.7 kB / 395.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.1153, allocations: 33.7 kB / 395.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1155, allocations: 144 kB / 396 MB, free: 15.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.85e-05/0.1155, allocations: 39.53 kB / 396 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.1157, allocations: 45.7 kB / 396.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1158, allocations: 330.8 kB / 396.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005452/0.1164, allocations: 87.92 kB / 396.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005619/0.117, allocations: 145.8 kB / 396.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.118, allocations: 268.8 kB / 396.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1181, allocations: 0 / 396.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001336/0.1194, allocations: 351.5 kB / 397.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.386e-05/0.1195, allocations: 59.41 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1195, allocations: 4.188 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.1196, allocations: 4 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004729/0.12, allocations: 59.95 kB / 397.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1201, allocations: 3.984 kB / 397.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003111/0.1204, allocations: 47.8 kB / 397.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.618e-05/0.1204, allocations: 7.938 kB / 397.4 MB, free: 14 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.000143/0.1206, allocations: 133.8 kB / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.1206, allocations: 19.75 kB / 397.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.952e-05/0.1207, allocations: 21.52 kB / 397.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1207, allocations: 7.938 kB / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1207, allocations: 0 / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1207, allocations: 0 / 397.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.121, allocations: 241.5 kB / 397.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.121, allocations: 3.938 kB / 397.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004473/0.1215, allocations: 63.88 kB / 397.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.1215, allocations: 0 / 397.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.1215, allocations: 4 kB / 397.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.907e-06/0.1215, allocations: 0 / 397.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1215, allocations: 3.938 kB / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.1226, allocations: 348.6 kB / 398.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.418e-05/0.1227, allocations: 96.88 kB / 398.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.877e-05/0.1228, allocations: 8 kB / 398.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.123, allocations: 32.02 kB / 398.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.866e-05/0.1231, allocations: 27.97 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.1231, allocations: 7.984 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001288/0.1233, allocations: 141.5 kB / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.1233, allocations: 0 / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002756/0.1236, allocations: 43.92 kB / 398.6 MB, free: 12.73 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.001347/0.1249, allocations: 0.8853 MB / 399.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008459/0.1258, allocations: 327.2 kB / 399.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1258, allocations: 0 / 399.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.1261, allocations: 96.23 kB / 399.9 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.0003316/0.1265, allocations: 39.73 kB / 400 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003934/0.1304, allocations: 2.294 MB / 402.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.1308, allocations: 0.7202 MB / 403 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.1309, allocations: 21.55 kB / 403 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.131, allocations: 51.42 kB / 403 MB, free: 8.098 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1311, allocations: 7.938 kB / 403 MB, free: 8.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.1538, allocations: 4.278 MB / 407.3 MB, free: 3.867 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.795/7.949, allocations: 16.42 kB / 407.3 MB, free: 3.852 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)