Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",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.00157/0.00157, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001632/0.001632, allocations: 188.7 kB / 16.13 MB, free: 6.66 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.386/1.386, allocations: 205.1 MB / 222 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05447/0.05447, allocations: 10.74 MB / 280.1 MB, free: 10.7 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.001281/0.001281, allocations: 71.83 kB / 340 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.09026, allocations: 49.01 MB / 389 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.0029/0.09319, allocations: 1.868 MB / 390.8 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.09426, allocations: 0.6516 MB / 391.5 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.641e-05/0.09436, allocations: 7.938 kB / 391.5 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.09449, allocations: 11.88 kB / 391.5 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.711e-05/0.09458, allocations: 31.72 kB / 391.5 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.09487, allocations: 95.83 kB / 391.6 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002332/0.09511, allocations: 211.4 kB / 391.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.09527, allocations: 52.59 kB / 391.9 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.09539, allocations: 91.58 kB / 392 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.09552, allocations: 91.52 kB / 392.1 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.312e-05/0.09556, allocations: 15.94 kB / 392.1 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.049e-05/0.0956, allocations: 8 kB / 392.1 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.954e-05/0.09565, allocations: 39.83 kB / 392.1 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.184e-05/0.09575, allocations: 83.45 kB / 392.2 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.09596, allocations: 179.5 kB / 392.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.09597, allocations: 0 / 392.4 MB, free: 3.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.09598, allocations: 3.938 kB / 392.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.09599, allocations: 0 / 392.4 MB, free: 3.156 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001106/0.0971, allocations: 0.5662 MB / 393 MB, free: 2.539 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.09715, allocations: 8.031 kB / 393 MB, free: 2.531 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.259e-05/0.09722, allocations: 54.73 kB / 393 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.0973, allocations: 24.66 kB / 393.1 MB, free: 2.445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.09767, allocations: 279.4 kB / 393.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.09779, allocations: 101.7 kB / 393.4 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.09785, allocations: 12.38 kB / 393.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000521/0.09837, allocations: 185.5 kB / 393.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.09839, allocations: 0 / 393.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.09842, allocations: 11.98 kB / 393.6 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.09844, allocations: 0 / 393.6 MB, free: 1.805 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.09895, allocations: 147.8 kB / 393.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001109/0.1001, allocations: 0.5779 MB / 394.4 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004817/0.1006, allocations: 150.4 kB / 394.5 MB, free: 0.875 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.1008, allocations: 72.8 kB / 394.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.1008, allocations: 0 / 394.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004608/0.1013, allocations: 143.3 kB / 394.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.1013, allocations: 4 kB / 394.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008649/0.1022, allocations: 269.3 kB / 395 MB, free: 384 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.1022, allocations: 63.39 kB / 395 MB, free: 308 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001697/0.1024, allocations: 207.1 kB / 395.2 MB, free: 92 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1025, allocations: 29.7 kB / 395.3 MB, free: 56 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1026, allocations: 148.2 kB / 395.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.269e-05/0.1026, allocations: 31.55 kB / 395.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.11e-05/0.1027, allocations: 41.7 kB / 395.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1028, allocations: 338.8 kB / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.1031, allocations: 75.94 kB / 395.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.1034, allocations: 107.4 kB / 396 MB, free: 15.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005393/0.1039, allocations: 203.8 kB / 396.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1039, allocations: 0 / 396.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006947/0.1046, allocations: 274.9 kB / 396.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.203e-05/0.1047, allocations: 29.7 kB / 396.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1047, allocations: 3.938 kB / 396.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.1047, allocations: 4 kB / 396.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006816/0.1054, allocations: 72.03 kB / 396.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.1054, allocations: 4 kB / 396.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002083/0.1056, allocations: 35.81 kB / 396.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.1057, allocations: 7.938 kB / 396.6 MB, free: 14.64 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,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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.000136/0.1058, allocations: 133.7 kB / 396.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.1058, allocations: 23.73 kB / 396.8 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.71e-05/0.1059, allocations: 21.41 kB / 396.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.1059, allocations: 8 kB / 396.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.106, allocations: 0 / 396.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.106, allocations: 0 / 396.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003141/0.1063, allocations: 277.4 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1063, allocations: 4 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007418/0.107, allocations: 67.94 kB / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1071, allocations: 4 kB / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1071, allocations: 0 / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1071, allocations: 0 / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1071, allocations: 0 / 397.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008224/0.1079, allocations: 320.5 kB / 397.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.108, allocations: 104.8 kB / 397.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.108, allocations: 4 kB / 397.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.1082, allocations: 19.97 kB / 397.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/0.1083, allocations: 23.97 kB / 397.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1083, allocations: 4 kB / 397.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001249/0.1085, allocations: 152.6 kB / 397.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1085, allocations: 0 / 397.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000227/0.1087, allocations: 32 kB / 397.8 MB, free: 13.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.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 (12): * Single equations (assignments): 9 * 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.00114/0.1098, allocations: 0.8501 MB / 398.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005973/0.1104, allocations: 231.4 kB / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1105, allocations: 0 / 398.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.1107, allocations: 91.86 kB / 399 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.111, allocations: 21.53 kB / 399 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003228/0.1142, allocations: 2.269 MB / 401.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.1146, allocations: 0.7397 MB / 402 MB, free: 9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.1147, allocations: 21.55 kB / 402 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.1148, allocations: 59.42 kB / 402.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1148, allocations: 3.938 kB / 402.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01352/0.1283, allocations: 3.715 MB / 405.8 MB, free: 5.285 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/0.1286, allocations: 233.5 kB / 406 MB, free: 5.031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/1.95, allocations: 0 / 406 MB, free: 5.031 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1)