Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.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.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",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.0007034/0.0007034, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.0007494/0.0007495, allocations: 172.7 kB / 15.95 MB, free: 208 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.199/1.199, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0519/0.0519, allocations: 10.75 MB / 281.1 MB, free: 10.41 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.0004533/0.0004533, allocations: 16 kB / 341.7 MB, free: 23.72 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07539/0.07585, allocations: 50.01 MB / 391.7 MB, free: 5.652 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.002327/0.07821, allocations: 1.968 MB / 393.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.07998, allocations: 1.327 MB / 395 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.08013, allocations: 15.88 kB / 395 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005146/0.08066, allocations: 183.4 kB / 395.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.08092, allocations: 131.5 kB / 395.3 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006531/0.08159, allocations: 323.3 kB / 395.7 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004669/0.08207, allocations: 0.4912 MB / 396.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.08221, allocations: 61.25 kB / 396.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.08243, allocations: 195.2 kB / 396.4 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.08267, allocations: 203.2 kB / 396.6 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.465e-05/0.08272, allocations: 12 kB / 396.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.08291, allocations: 123.8 kB / 396.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.08304, allocations: 111.6 kB / 396.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.825e-05/0.08313, allocations: 97.39 kB / 396.9 MB, free: 412 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003504/0.08348, allocations: 371.4 kB / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.08349, allocations: 0 / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.0835, allocations: 0 / 397.3 MB, free: 40 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.08351, allocations: 0 / 397.3 MB, free: 40 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001066/0.08458, allocations: 0.7789 MB / 398.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.042e-05/0.08462, allocations: 8.031 kB / 398.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.357e-05/0.0847, allocations: 70.53 kB / 398.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.271e-05/0.08478, allocations: 51.34 kB / 398.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004653/0.08525, allocations: 397.4 kB / 398.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.079e-05/0.08532, allocations: 75.97 kB / 398.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.08538, allocations: 32 kB / 398.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005829/0.08596, allocations: 395.6 kB / 399.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.08599, allocations: 7.859 kB / 399.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.08603, allocations: 12 kB / 399.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.08605, allocations: 15.98 kB / 399.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004537/0.08651, allocations: 274 kB / 399.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.0884, allocations: 1.465 MB / 400.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004293/0.08885, allocations: 190.9 kB / 401 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001995/0.08906, allocations: 133 kB / 401.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.0891, allocations: 4.188 kB / 401.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.08944, allocations: 226.7 kB / 401.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.493e-06/0.08945, allocations: 0 / 401.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.0008121/0.09027, allocations: 490.1 kB / 401.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.09033, allocations: 114.8 kB / 402 MB, free: 11.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004862/0.09083, allocations: 481.8 kB / 402.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.09086, allocations: 33.7 kB / 402.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001666/0.09104, allocations: 260 kB / 402.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.09112, allocations: 94.73 kB / 402.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.726e-05/0.09114, allocations: 8 kB / 402.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.09129, allocations: 362.7 kB / 403.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.09151, allocations: 124.6 kB / 403.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/0.09179, allocations: 232.9 kB / 403.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.09207, allocations: 185.5 kB / 403.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.09208, allocations: 0 / 403.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000736/0.09282, allocations: 0.5102 MB / 404.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.222e-05/0.09287, allocations: 45.62 kB / 404.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.09289, allocations: 4 kB / 404.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.09291, allocations: 4 kB / 404.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004865/0.0934, allocations: 91.88 kB / 404.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.09342, allocations: 4 kB / 404.4 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.09361, allocations: 47.77 kB / 404.4 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.09365, allocations: 24 kB / 404.5 MB, free: 8.492 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * 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.0002574/0.09391, allocations: 240.4 kB / 404.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.09398, allocations: 47.44 kB / 404.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007068/0.09469, allocations: 443.9 kB / 405.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.0947, allocations: 0 / 405.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.09471, allocations: 4 kB / 405.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.09473, allocations: 7.969 kB / 405.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.09512, allocations: 425.2 kB / 405.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.09513, allocations: 3.938 kB / 405.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.09565, allocations: 71.83 kB / 405.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.09566, allocations: 4 kB / 405.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.974e-05/0.0957, allocations: 11.98 kB / 405.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.0957, allocations: 0 / 405.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.09571, allocations: 0 / 405.7 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008945/0.09661, allocations: 0.6078 MB / 406.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.968e-05/0.09671, allocations: 128.5 kB / 406.4 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.09678, allocations: 8 kB / 406.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.09694, allocations: 19.98 kB / 406.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.66e-05/0.09701, allocations: 19.97 kB / 406.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/0.09705, allocations: 11.98 kB / 406.5 MB, free: 6.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003388/0.09739, allocations: 335.1 kB / 406.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0974, allocations: 0 / 406.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.09777, allocations: 107.8 kB / 406.9 MB, free: 5.914 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.001929/0.0997, allocations: 1.496 MB / 408.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000597/0.1003, allocations: 416.1 kB / 408.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1003, allocations: 4.062 kB / 408.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002794/0.1006, allocations: 227.3 kB / 409 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.101, allocations: 74.88 kB / 409.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.1045, allocations: 2.831 MB / 411.9 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1049, allocations: 0.8578 MB / 412.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000201/0.1051, allocations: 75.22 kB / 412.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.1053, allocations: 155.4 kB / 413 MB, free: 15.72 MB / 318.1 MB Notification: Performance of SimCode: time 1.703e-06/0.1053, allocations: 0 / 413 MB, free: 15.72 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.1253, allocations: 8.803 MB / 421.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/0.1255, allocations: 247.5 kB / 422.1 MB, free: 6.648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.743/1.868, allocations: 4.062 kB / 422.1 MB, free: 6.645 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1) Environment - environmentSimulation: