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 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.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.0008415/0.0008415, allocations: 97.64 kB / 15.36 MB, free: 0.7305 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.0008972/0.0008975, allocations: 173.1 kB / 16.27 MB, free: 6.656 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.701/1.701, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0548/0.0548, allocations: 10.74 MB / 281.5 MB, free: 10.45 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.0005894/0.0005894, allocations: 18.97 kB / 342.3 MB, free: 23.4 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1162, allocations: 50 MB / 392.3 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.00196/0.1182, allocations: 1.428 MB / 393.8 MB, free: 3.883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001046/0.1192, allocations: 0.5854 MB / 394.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.1194, allocations: 0 / 394.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.24e-05/0.1195, allocations: 19.8 kB / 394.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.51e-05/0.1196, allocations: 23.78 kB / 394.4 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.1198, allocations: 63.88 kB / 394.5 MB, free: 3.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.12, allocations: 167.5 kB / 394.6 MB, free: 3.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.174e-05/0.1201, allocations: 25.75 kB / 394.7 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.1202, allocations: 71.69 kB / 394.7 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.279e-05/0.1203, allocations: 63.62 kB / 394.8 MB, free: 2.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.1204, allocations: 4 kB / 394.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.799e-05/0.1204, allocations: 8 kB / 394.8 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.878e-05/0.1204, allocations: 23.91 kB / 394.8 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.108e-05/0.1205, allocations: 89.23 kB / 394.9 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.1206, allocations: 127.5 kB / 395 MB, free: 2.609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1206, allocations: 0 / 395 MB, free: 2.609 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1207, allocations: 0 / 395 MB, free: 2.609 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1207, allocations: 0 / 395 MB, free: 2.609 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0007935/0.1215, allocations: 0.4922 MB / 395.5 MB, free: 2.066 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.1215, allocations: 16.03 kB / 395.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.757e-05/0.1216, allocations: 38.75 kB / 395.6 MB, free: 2.004 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.335e-05/0.1216, allocations: 20.75 kB / 395.6 MB, free: 1.984 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.1219, allocations: 243.8 kB / 395.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.155e-05/0.1219, allocations: 59.97 kB / 395.9 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.122, allocations: 16.31 kB / 395.9 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000379/0.1224, allocations: 153.5 kB / 396.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-06/0.1224, allocations: 0 / 396.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1224, allocations: 0 / 396.1 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1224, allocations: 7.984 kB / 396.1 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004969/0.1229, allocations: 151.8 kB / 396.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006975/0.1236, allocations: 448.4 kB / 396.7 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004718/0.1241, allocations: 154.4 kB / 396.8 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.1244, allocations: 80.8 kB / 396.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.1244, allocations: 0 / 396.9 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003955/0.1248, allocations: 139.3 kB / 397 MB, free: 440 kB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.1248, allocations: 0 / 397 MB, free: 440 kB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008409/0.1256, allocations: 285.2 kB / 397.3 MB, free: 148 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.1257, allocations: 59.33 kB / 397.4 MB, free: 76 kB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter Input.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.1259, allocations: 190.8 kB / 397.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.1259, allocations: 29.7 kB / 397.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/0.126, allocations: 124.6 kB / 397.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.126, allocations: 27.64 kB / 397.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.1261, allocations: 17.72 kB / 397.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1262, allocations: 330.8 kB / 398.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.1265, allocations: 83.88 kB / 398.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.1267, allocations: 107.4 kB / 398.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.1273, allocations: 204.9 kB / 398.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1273, allocations: 0 / 398.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006504/0.1279, allocations: 263 kB / 398.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.128, allocations: 40.3 kB / 398.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.128, allocations: 0 / 398.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.418e-06/0.128, allocations: 0 / 398.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.1282, allocations: 39.91 kB / 398.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1282, allocations: 8.062 kB / 398.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.1284, allocations: 39.89 kB / 398.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.1285, allocations: 4 kB / 398.8 MB, free: 14.52 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,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.0001042/0.1286, allocations: 121.8 kB / 398.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.1286, allocations: 19.75 kB / 399 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.1286, allocations: 25.33 kB / 399 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1287, allocations: 4 kB / 399 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1287, allocations: 0 / 399 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1287, allocations: 0 / 399 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001953/0.1289, allocations: 225.7 kB / 399.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1289, allocations: 0 / 399.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001486/0.129, allocations: 27.97 kB / 399.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.1291, allocations: 7.938 kB / 399.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.1291, allocations: 4 kB / 399.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1291, allocations: 0 / 399.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1291, allocations: 0 / 399.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005729/0.1297, allocations: 232.8 kB / 399.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.1297, allocations: 92.86 kB / 399.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.568e-05/0.1298, allocations: 11.94 kB / 399.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.1299, allocations: 31.95 kB / 399.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/0.13, allocations: 15.98 kB / 399.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.13, allocations: 11.98 kB / 399.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.835e-05/0.1301, allocations: 124.1 kB / 399.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1301, allocations: 4 kB / 399.8 MB, free: 13.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.1304, allocations: 27.94 kB / 399.8 MB, free: 13.45 MB / 302.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.000871/0.1312, allocations: 0.7762 MB / 400.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005917/0.1319, allocations: 239.3 kB / 400.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1319, allocations: 0 / 400.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002762/0.1322, allocations: 92 kB / 400.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.1324, allocations: 15.98 kB / 400.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002858/0.1352, allocations: 2.033 MB / 402.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.1355, allocations: 0.7123 MB / 403.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.696e-05/0.1356, allocations: 21.02 kB / 403.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.858e-05/0.1357, allocations: 39.67 kB / 403.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1357, allocations: 0 / 403.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/0.5188, allocations: 3.012 MB / 406.7 MB, free: 6.453 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003374/0.5192, allocations: 239.2 kB / 407 MB, free: 6.195 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.808/2.327, allocations: 0 / 407 MB, free: 6.195 MB / 302.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)