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.001387/0.001387, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001664/0.001664, allocations: 190.5 kB / 16.25 MB, free: 6.617 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.599/1.599, 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.05781/0.05781, allocations: 10.74 MB / 280.2 MB, free: 10.68 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.001594/0.001594, allocations: 59.91 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1169, allocations: 49.01 MB / 389.2 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.004031/0.121, allocations: 1.876 MB / 391 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.1225, allocations: 0.6399 MB / 391.7 MB, free: 3.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002711/0.1228, allocations: 11.94 kB / 391.7 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.1231, allocations: 19.8 kB / 391.7 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.1233, allocations: 27.78 kB / 391.7 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.1237, allocations: 87.84 kB / 391.8 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003584/0.124, allocations: 227.4 kB / 392 MB, free: 3.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.1242, allocations: 56.61 kB / 392.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.1244, allocations: 95.58 kB / 392.2 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.1246, allocations: 99.52 kB / 392.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.1246, allocations: 23.94 kB / 392.3 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.154e-05/0.1247, allocations: 16 kB / 392.3 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.108e-05/0.1247, allocations: 39.84 kB / 392.4 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1248, allocations: 99.44 kB / 392.5 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.1251, allocations: 187.5 kB / 392.6 MB, free: 3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1251, allocations: 0 / 392.6 MB, free: 3 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1251, allocations: 0 / 392.6 MB, free: 3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1251, allocations: 0 / 392.6 MB, free: 3 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.001358/0.1265, allocations: 0.5629 MB / 393.2 MB, free: 2.383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1266, allocations: 11.89 kB / 393.2 MB, free: 2.371 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.521e-05/0.1267, allocations: 46.73 kB / 393.3 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.606e-05/0.1268, allocations: 28.66 kB / 393.3 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.1272, allocations: 279.4 kB / 393.6 MB, free: 1.977 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.1273, allocations: 97.67 kB / 393.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/0.1274, allocations: 16.38 kB / 393.7 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000671/0.1281, allocations: 189.4 kB / 393.9 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1281, allocations: 0 / 393.9 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.325e-05/0.1281, allocations: 4 kB / 393.9 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.862e-06/0.1281, allocations: 4 kB / 393.9 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004992/0.1286, allocations: 147.9 kB / 394 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.1298, allocations: 0.5817 MB / 394.6 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004618/0.1303, allocations: 142.4 kB / 394.7 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002415/0.1305, allocations: 76.8 kB / 394.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.179e-05/0.1306, allocations: 3.984 kB / 394.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000469/0.131, allocations: 147.3 kB / 395 MB, free: 496 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 2.054e-06/0.1311, allocations: 0 / 395 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008908/0.132, allocations: 273.4 kB / 395.2 MB, free: 216 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.1321, allocations: 55.41 kB / 395.3 MB, free: 148 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.1325, allocations: 207.1 kB / 395.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.1325, allocations: 29.7 kB / 395.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.1326, allocations: 144.2 kB / 395.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.661e-05/0.1327, allocations: 35.55 kB / 395.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.723e-05/0.1328, allocations: 41.7 kB / 395.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.133, allocations: 334.8 kB / 396.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.1333, allocations: 79.92 kB / 396.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/0.1336, allocations: 114.8 kB / 396.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004993/0.1341, allocations: 197 kB / 396.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.1341, allocations: 0 / 396.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000687/0.1348, allocations: 270.9 kB / 396.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.637e-05/0.1349, allocations: 40.66 kB / 396.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1349, allocations: 0 / 396.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1349, allocations: 4 kB / 396.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/0.1357, allocations: 75.98 kB / 396.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.1357, allocations: 0 / 396.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.136, allocations: 35.8 kB / 396.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.136, allocations: 12 kB / 396.9 MB, free: 14.48 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.0001501/0.1362, allocations: 134.8 kB / 397 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.176e-05/0.1362, allocations: 15.81 kB / 397 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.49e-05/0.1363, allocations: 21.39 kB / 397 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.1363, allocations: 8 kB / 397 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.1363, allocations: 4 kB / 397 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.1363, allocations: 0 / 397 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.1367, allocations: 273.4 kB / 397.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1367, allocations: 0 / 397.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007962/0.1375, allocations: 67.94 kB / 397.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.1376, allocations: 4 kB / 397.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.1376, allocations: 11.98 kB / 397.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1376, allocations: 0 / 397.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.1376, allocations: 3.938 kB / 397.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000855/0.1385, allocations: 320.9 kB / 397.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.131e-05/0.1386, allocations: 96.77 kB / 397.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.41e-05/0.1386, allocations: 4.047 kB / 397.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.1388, allocations: 27.95 kB / 397.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.89e-05/0.1389, allocations: 19.97 kB / 397.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.1389, allocations: 4 kB / 397.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.1391, allocations: 152.6 kB / 398 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1391, allocations: 0 / 398 MB, free: 13.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000269/0.1394, allocations: 32 kB / 398 MB, free: 13.2 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.001342/0.1407, allocations: 0.854 MB / 398.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006373/0.1414, allocations: 239.2 kB / 399.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1414, allocations: 0 / 399.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.1417, allocations: 83.88 kB / 399.2 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.142, allocations: 24.66 kB / 399.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.1455, allocations: 2.273 MB / 401.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.1459, allocations: 0.7358 MB / 402.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.1461, allocations: 21.55 kB / 402.3 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.1462, allocations: 67.34 kB / 402.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1462, allocations: 0 / 402.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01556/0.1618, allocations: 3.835 MB / 406.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.162, allocations: 233.7 kB / 406.4 MB, free: 4.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.187, allocations: 0 / 406.4 MB, free: 4.758 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)