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.0007308/0.0007308, allocations: 91.77 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.0007847/0.0007847, 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.169/1.169, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05293/0.05293, allocations: 10.75 MB / 281.1 MB, free: 10.55 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.0004654/0.0004654, allocations: 20 kB / 341.7 MB, free: 23.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07154/0.07202, allocations: 50.01 MB / 391.7 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.001652/0.07371, allocations: 1.472 MB / 393.2 MB, free: 4.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008231/0.07455, allocations: 0.6208 MB / 393.8 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.328e-05/0.07464, allocations: 7.938 kB / 393.8 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.88e-05/0.07473, allocations: 19.8 kB / 393.9 MB, free: 3.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.92e-05/0.0748, allocations: 15.81 kB / 393.9 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.07503, allocations: 87.81 kB / 394 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.07523, allocations: 191.5 kB / 394.2 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.07536, allocations: 52.72 kB / 394.2 MB, free: 3.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.537e-05/0.07546, allocations: 71.64 kB / 394.3 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.936e-05/0.07557, allocations: 75.61 kB / 394.3 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.0756, allocations: 11.94 kB / 394.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.085e-05/0.07562, allocations: 8 kB / 394.4 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.931e-05/0.07567, allocations: 43.77 kB / 394.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.579e-05/0.07572, allocations: 53.58 kB / 394.5 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001255/0.07586, allocations: 131.9 kB / 394.6 MB, free: 2.785 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.07587, allocations: 4 kB / 394.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.07587, allocations: 0 / 394.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.07589, allocations: 0 / 394.6 MB, free: 2.781 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.0008003/0.07669, allocations: 0.5433 MB / 395.1 MB, free: 2.184 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.07673, allocations: 8.031 kB / 395.1 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.07678, allocations: 54.55 kB / 395.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.084e-05/0.07684, allocations: 27.72 kB / 395.2 MB, free: 2.086 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.07713, allocations: 274.2 kB / 395.5 MB, free: 1.777 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.07722, allocations: 93.11 kB / 395.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.703e-05/0.07726, allocations: 12 kB / 395.6 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.07768, allocations: 201.5 kB / 395.8 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.0777, allocations: 0 / 395.8 MB, free: 1.453 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.07773, allocations: 11.95 kB / 395.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.07774, allocations: 0 / 395.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.07821, allocations: 175.8 kB / 396 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009493/0.07917, allocations: 0.5897 MB / 396.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.07963, allocations: 170.4 kB / 396.7 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.07987, allocations: 92.78 kB / 396.8 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.21e-05/0.0799, allocations: 4.188 kB / 396.8 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003771/0.08028, allocations: 159.2 kB / 397 MB, free: 192 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.0803, allocations: 0 / 397 MB, free: 192 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008351/0.08114, allocations: 317.3 kB / 397.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.08118, allocations: 55.41 kB / 397.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.08136, allocations: 207.1 kB / 397.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.294e-05/0.08139, allocations: 33.7 kB / 397.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.08148, allocations: 144.2 kB / 397.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.08152, allocations: 39.45 kB / 397.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.042e-05/0.08154, allocations: 0 / 397.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.08165, allocations: 330.8 kB / 398.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.08192, allocations: 99.92 kB / 398.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.08218, allocations: 127.1 kB / 398.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.08244, allocations: 116.6 kB / 398.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.08245, allocations: 0 / 398.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006064/0.08307, allocations: 295 kB / 398.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.285e-05/0.08311, allocations: 37.62 kB / 398.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.08312, allocations: 4 kB / 398.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.08314, allocations: 3.938 kB / 398.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005876/0.08374, allocations: 76.02 kB / 398.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.08376, allocations: 7.984 kB / 398.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.08396, allocations: 47.81 kB / 398.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.08399, allocations: 7.984 kB / 398.9 MB, free: 14.2 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,$whenCondition2,FOaw.ts,$PRE.TSsignal.pulseStart,TSsignal.pulseStart,$PRE.TrackRef.T_start,TrackRef.T_start,$PRE.TrackRef.count,TrackRef.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.0841, allocations: 133.7 kB / 399 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.475e-05/0.08414, allocations: 15.81 kB / 399 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.139e-05/0.0842, allocations: 25.39 kB / 399.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.0842, allocations: 0 / 399.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.08421, allocations: 4 kB / 399.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.08422, allocations: 0 / 399.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.08446, allocations: 281.4 kB / 399.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.08447, allocations: 0 / 399.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006562/0.08513, allocations: 75.94 kB / 399.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.08514, allocations: 0 / 399.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.08517, allocations: 8 kB / 399.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.08518, allocations: 4 kB / 399.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.08518, allocations: 0 / 399.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007912/0.08598, allocations: 360.5 kB / 399.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.751e-05/0.08604, allocations: 92.95 kB / 399.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.08607, allocations: 0 / 399.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.08626, allocations: 39.97 kB / 399.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.08633, allocations: 19.97 kB / 399.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.08635, allocations: 7.922 kB / 399.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.08646, allocations: 148.6 kB / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08647, allocations: 0 / 400.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002254/0.0867, allocations: 35.84 kB / 400.1 MB, free: 12.87 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 (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.001047/0.08775, allocations: 0.9015 MB / 401 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005905/0.08835, allocations: 263.2 kB / 401.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.08837, allocations: 0 / 401.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002551/0.08863, allocations: 100 kB / 401.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.08886, allocations: 24.66 kB / 401.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.09094, allocations: 1.259 MB / 402.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.09121, allocations: 0.7358 MB / 403.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.835e-05/0.09131, allocations: 25.48 kB / 403.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.09142, allocations: 67.41 kB / 403.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.09143, allocations: 0 / 403.5 MB, free: 9.383 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01276/0.1042, allocations: 3.606 MB / 407.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/0.1044, allocations: 216.1 kB / 407.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.549/1.653, allocations: 7.734 kB / 407.3 MB, free: 5.652 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/linux/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) Environment - environmentSimulation: