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 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.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.005246/0.005246, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001359/0.001359, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.38/1.38, 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.05795/0.05795, allocations: 11.21 MB / 301.7 MB, free: 4.055 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 69.14 kB / 417.3 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07245/0.0741, allocations: 51.98 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.002522/0.07665, allocations: 1.812 MB / 471.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000861/0.07753, allocations: 0.6117 MB / 471.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.203e-05/0.07762, allocations: 11.88 kB / 471.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.849e-05/0.07773, allocations: 23.73 kB / 471.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.279e-05/0.07781, allocations: 27.61 kB / 471.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.07806, allocations: 111.8 kB / 471.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002582/0.07833, allocations: 231.4 kB / 472.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.07846, allocations: 52.61 kB / 472.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.07858, allocations: 99.61 kB / 472.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.07871, allocations: 87.55 kB / 472.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.07875, allocations: 16 kB / 472.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.055e-05/0.07878, allocations: 20 kB / 472.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.494e-05/0.07884, allocations: 51.75 kB / 472.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.023e-05/0.07894, allocations: 95.41 kB / 472.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.07916, allocations: 191.4 kB / 472.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.07917, allocations: 0 / 472.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07918, allocations: 0 / 472.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.07919, allocations: 0 / 472.8 MB, free: 11.65 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009472/0.08014, allocations: 0.5821 MB / 473.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.08018, allocations: 11.89 kB / 473.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.411e-05/0.08022, allocations: 50.73 kB / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.463e-05/0.08028, allocations: 28.8 kB / 473.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.08064, allocations: 299.8 kB / 473.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.248e-05/0.08072, allocations: 93.67 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.08076, allocations: 16.36 kB / 473.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004265/0.08119, allocations: 189.4 kB / 474 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.08121, allocations: 0 / 474 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.08123, allocations: 4 kB / 474 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.828e-06/0.08124, allocations: 4 kB / 474 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.08174, allocations: 147.9 kB / 474.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009573/0.08271, allocations: 0.5665 MB / 474.7 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.08319, allocations: 146.4 kB / 474.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002457/0.08344, allocations: 84.8 kB / 475 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.08347, allocations: 0 / 475 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003533/0.08383, allocations: 143.2 kB / 475.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.08384, allocations: 0 / 475.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008436/0.08469, allocations: 265.5 kB / 475.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.08474, allocations: 59.41 kB / 475.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.08492, allocations: 207.1 kB / 475.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.08495, allocations: 37.7 kB / 475.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.08505, allocations: 144.3 kB / 475.8 MB, free: 8.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.794e-05/0.0851, allocations: 47.61 kB / 475.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.156e-05/0.08517, allocations: 37.7 kB / 475.9 MB, free: 8.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.08531, allocations: 338.8 kB / 476.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/0.08558, allocations: 75.92 kB / 476.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.08587, allocations: 114.3 kB / 476.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005239/0.0864, allocations: 204.9 kB / 476.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.08641, allocations: 4 kB / 476.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006464/0.08706, allocations: 277.5 kB / 476.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.0871, allocations: 33.7 kB / 476.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.08711, allocations: 0 / 476.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.08713, allocations: 4 kB / 476.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006647/0.0878, allocations: 67.94 kB / 477 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.08781, allocations: 0 / 477 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.08801, allocations: 39.89 kB / 477 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.08804, allocations: 8 kB / 477 MB, free: 7.086 MB / 350.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.000109/0.08815, allocations: 134.8 kB / 477.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.08819, allocations: 15.91 kB / 477.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.08823, allocations: 21.39 kB / 477.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.08824, allocations: 4 kB / 477.2 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.08825, allocations: 3.984 kB / 477.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.686e-06/0.08825, allocations: 4 kB / 477.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.0885, allocations: 277.4 kB / 477.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.08851, allocations: 0 / 477.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/0.08925, allocations: 67.94 kB / 477.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.08927, allocations: 0 / 477.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.08929, allocations: 11.88 kB / 477.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.0893, allocations: 7.984 kB / 477.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.0893, allocations: 0 / 477.6 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008352/0.09014, allocations: 317.1 kB / 477.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.09021, allocations: 97.05 kB / 478 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.09024, allocations: 0 / 478 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.09043, allocations: 23.97 kB / 478 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.758e-05/0.09051, allocations: 23.97 kB / 478 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.09052, allocations: 4 kB / 478 MB, free: 6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.09064, allocations: 148.6 kB / 478.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09065, allocations: 0 / 478.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.09086, allocations: 35.89 kB / 478.2 MB, free: 5.82 MB / 350.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.0011/0.09197, allocations: 0.862 MB / 479 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005978/0.09258, allocations: 231.2 kB / 479.3 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.09259, allocations: 3.938 kB / 479.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.09287, allocations: 92.05 kB / 479.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.09309, allocations: 28.67 kB / 479.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.09617, allocations: 2.209 MB / 481.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.09649, allocations: 0.7396 MB / 482.3 MB, free: 1.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.645e-05/0.09658, allocations: 21.55 kB / 482.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001026/0.09669, allocations: 67.41 kB / 482.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.0967, allocations: 4 kB / 482.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.459/1.555, allocations: 4.111 MB / 486.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.716/10.27, allocations: 12.41 kB / 486.6 MB, free: 13.43 MB / 366.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)