Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.007327/0.007327, allocations: 101 kB / 15.73 MB, free: 6.059 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.001883/0.001883, allocations: 192.6 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06592/0.06592, allocations: 11.2 MB / 301.7 MB, free: 4.043 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 66.09 kB / 417.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09911/0.1009, allocations: 51.98 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.005324/0.1063, allocations: 2.451 MB / 471.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003578/0.1099, allocations: 1.528 MB / 473.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002912/0.1102, allocations: 19.81 kB / 473.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008444/0.1111, allocations: 215 kB / 473.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000571/0.1117, allocations: 175.2 kB / 473.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.1132, allocations: 442.5 kB / 474.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1142, allocations: 0.6373 MB / 474.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.1145, allocations: 81.06 kB / 474.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004656/0.115, allocations: 239.1 kB / 475.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003933/0.1154, allocations: 258.9 kB / 475.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.589e-05/0.1155, allocations: 32 kB / 475.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002973/0.1158, allocations: 155.9 kB / 475.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.116, allocations: 147.5 kB / 475.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000248/0.1162, allocations: 222.5 kB / 475.9 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007377/0.117, allocations: 0.5836 MB / 476.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.117, allocations: 0 / 476.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.117, allocations: 0 / 476.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.713e-05/0.117, allocations: 0 / 476.5 MB, free: 7.906 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001544/0.1186, allocations: 0.9308 MB / 477.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1186, allocations: 11.89 kB / 477.4 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.491e-05/0.1187, allocations: 74.72 kB / 477.5 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.1188, allocations: 76.5 kB / 477.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007105/0.1196, allocations: 479 kB / 478 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.1196, allocations: 29.36 kB / 478.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.021e-05/0.1197, allocations: 47.89 kB / 478.1 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000771/0.1205, allocations: 476.2 kB / 478.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.1205, allocations: 8 kB / 478.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.628e-05/0.1205, allocations: 12 kB / 478.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1206, allocations: 8 kB / 478.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.1212, allocations: 322.3 kB / 478.9 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002683/0.1239, allocations: 1.935 MB / 480.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.1244, allocations: 234.9 kB / 481.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/0.1246, allocations: 149.5 kB / 481.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/0.1247, allocations: 8.234 kB / 481.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004183/0.1251, allocations: 243.2 kB / 481.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.914e-06/0.1251, allocations: 0 / 481.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001039/0.1261, allocations: 0.5455 MB / 482 MB, free: 2.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.857e-05/0.1262, allocations: 110.8 kB / 482.1 MB, free: 1.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006491/0.1269, allocations: 0.5495 MB / 482.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.1269, allocations: 33.7 kB / 482.7 MB, free: 1.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.1272, allocations: 284.3 kB / 483 MB, free: 1.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.1273, allocations: 119 kB / 483.1 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.1275, allocations: 106.1 kB / 483.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.1277, allocations: 370.8 kB / 483.6 MB, free: 472 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.128, allocations: 144.9 kB / 483.7 MB, free: 328 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.1284, allocations: 321.5 kB / 484 MB, free: 15.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002032/0.1304, allocations: 0.9445 MB / 485 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1305, allocations: 0 / 485 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001096/0.1316, allocations: 0.6478 MB / 485.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/0.1316, allocations: 37.69 kB / 485.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.1316, allocations: 8.656 kB / 485.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1317, allocations: 7.938 kB / 485.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.1321, allocations: 119.8 kB / 485.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1321, allocations: 11.94 kB / 485.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002671/0.1324, allocations: 63.61 kB / 485.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.1325, allocations: 20 kB / 485.9 MB, free: 13.96 MB / 366.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0003496/0.1328, allocations: 267 kB / 486.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.344e-05/0.1329, allocations: 59.62 kB / 486.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009086/0.1338, allocations: 0.4885 MB / 486.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1338, allocations: 0 / 486.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1338, allocations: 4 kB / 486.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.1339, allocations: 3.984 kB / 486.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005253/0.1344, allocations: 465.1 kB / 487.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1344, allocations: 4 kB / 487.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.1348, allocations: 55.97 kB / 487.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.1348, allocations: 7.922 kB / 487.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.1349, allocations: 16 kB / 487.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.1349, allocations: 7.938 kB / 487.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1349, allocations: 4 kB / 487.2 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.1361, allocations: 0.6755 MB / 487.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.1362, allocations: 132.6 kB / 488 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.512e-05/0.1363, allocations: 16 kB / 488.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.1365, allocations: 11.98 kB / 488.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.784e-05/0.1366, allocations: 32.06 kB / 488.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.1366, allocations: 19.92 kB / 488.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004639/0.1371, allocations: 374.8 kB / 488.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1371, allocations: 0 / 488.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004422/0.1375, allocations: 123.8 kB / 488.6 MB, free: 11.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.003003/0.1406, allocations: 1.568 MB / 490.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008531/0.1414, allocations: 0.4883 MB / 490.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1414, allocations: 4.062 kB / 490.7 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.1418, allocations: 255.2 kB / 490.9 MB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.1423, allocations: 91.48 kB / 491 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006564/0.1488, allocations: 4.873 MB / 495.9 MB, free: 3.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005477/0.1494, allocations: 0.882 MB / 496.8 MB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002614/0.1497, allocations: 108.3 kB / 496.9 MB, free: 2.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.15, allocations: 187.4 kB / 497 MB, free: 2.523 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.15, allocations: 0 / 497 MB, free: 2.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03821/0.1882, allocations: 10.69 MB / 0.4958 GB, free: 8.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.329/8.518, allocations: 6.047 kB / 0.4958 GB, free: 8.023 MB / 382.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)