Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",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.005128/0.005128, allocations: 106 kB / 15.74 MB, free: 6.02 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.001341/0.001341, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06168/0.06168, allocations: 11.21 MB / 301.7 MB, free: 4.035 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 64.7 kB / 417.4 MB, free: 19.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07471/0.0764, allocations: 51.98 MB / 469.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002466/0.0789, allocations: 1.715 MB / 471.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008028/0.07972, allocations: 0.5493 MB / 471.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.37e-05/0.0798, allocations: 7.938 kB / 471.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.433e-05/0.07991, allocations: 15.8 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.736e-05/0.07998, allocations: 31.72 kB / 471.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.08019, allocations: 67.78 kB / 471.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002191/0.08041, allocations: 179.5 kB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.691e-05/0.08052, allocations: 33.53 kB / 471.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.08065, allocations: 75.69 kB / 472 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.991e-05/0.08076, allocations: 75.62 kB / 472.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.08079, allocations: 12 kB / 472.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.43e-05/0.08082, allocations: 12 kB / 472.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.985e-05/0.08087, allocations: 31.84 kB / 472.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.498e-05/0.08095, allocations: 71.58 kB / 472.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.08113, allocations: 139.6 kB / 472.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.08114, allocations: 0 / 472.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08114, allocations: 0 / 472.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.08115, allocations: 0 / 472.3 MB, free: 12.05 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0008584/0.08202, allocations: 0.512 MB / 472.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.08205, allocations: 11.89 kB / 472.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.0821, allocations: 46.67 kB / 472.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.059e-05/0.08214, allocations: 16.84 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.08244, allocations: 256 kB / 473.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.08251, allocations: 63.97 kB / 473.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.08254, allocations: 4.375 kB / 473.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003631/0.08291, allocations: 141.5 kB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.08292, allocations: 4 kB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.08294, allocations: 4 kB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.08295, allocations: 0 / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/0.08342, allocations: 127.8 kB / 473.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006967/0.08412, allocations: 428.5 kB / 473.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.08458, allocations: 122.4 kB / 474.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002306/0.08482, allocations: 68.8 kB / 474.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.08485, allocations: 0 / 474.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00034/0.08519, allocations: 135.2 kB / 474.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.0852, allocations: 0 / 474.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007985/0.08601, allocations: 241.5 kB / 474.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.08605, allocations: 55.34 kB / 474.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.08622, allocations: 183.9 kB / 474.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.08625, allocations: 29.7 kB / 474.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.35e-05/0.08633, allocations: 124.2 kB / 474.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.08636, allocations: 28 kB / 474.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/0.08643, allocations: 37.7 kB / 474.9 MB, free: 9.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.08656, allocations: 322.8 kB / 475.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.08681, allocations: 63.94 kB / 475.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.08708, allocations: 102 kB / 475.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004727/0.08756, allocations: 176.9 kB / 475.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.08757, allocations: 384 / 475.6 MB, free: 8.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005886/0.08817, allocations: 231.1 kB / 475.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.08821, allocations: 37.62 kB / 475.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.08822, allocations: 8.094 kB / 475.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.08824, allocations: 3.938 kB / 475.9 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.08841, allocations: 31.91 kB / 475.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.08842, allocations: 0 / 475.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.08861, allocations: 31.92 kB / 475.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.08863, allocations: 4 kB / 475.9 MB, free: 8.172 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,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0001008/0.08874, allocations: 129.8 kB / 476.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.08877, allocations: 19.84 kB / 476.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.08881, allocations: 17.34 kB / 476.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.08882, allocations: 4 kB / 476.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.08883, allocations: 0 / 476.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.08884, allocations: 0 / 476.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.08903, allocations: 217.6 kB / 476.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.08904, allocations: 0 / 476.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001417/0.08918, allocations: 27.97 kB / 476.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.08919, allocations: 3.938 kB / 476.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.08921, allocations: 4 kB / 476.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.08922, allocations: 3.984 kB / 476.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.08922, allocations: 3.984 kB / 476.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000535/0.08976, allocations: 196.9 kB / 476.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/0.08983, allocations: 96.95 kB / 476.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.94e-05/0.08986, allocations: 15.92 kB / 476.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.09004, allocations: 23.97 kB / 476.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.074e-05/0.09012, allocations: 19.97 kB / 476.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.09013, allocations: 4 kB / 476.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.638e-05/0.09023, allocations: 128.1 kB / 476.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09024, allocations: 0 / 476.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002013/0.09044, allocations: 27.95 kB / 476.9 MB, free: 7.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.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 (10): * Single equations (assignments): 7 * 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.0008217/0.09127, allocations: 0.7451 MB / 477.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005689/0.09185, allocations: 211.2 kB / 477.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.09186, allocations: 0 / 477.8 MB, free: 6.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002532/0.09212, allocations: 75.94 kB / 477.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.09234, allocations: 28.31 kB / 477.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.09503, allocations: 1.935 MB / 479.8 MB, free: 4.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.09533, allocations: 0.7084 MB / 480.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.375e-05/0.0954, allocations: 17.08 kB / 480.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.039e-05/0.09549, allocations: 43.42 kB / 480.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.09549, allocations: 0 / 480.6 MB, free: 3.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.674/1.769, allocations: 3.465 MB / 484.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.774/10.54, allocations: 9.453 kB / 484.1 MB, free: 15.9 MB / 366.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1)