Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.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.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",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.001893/0.001893, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002427/0.002427, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.214/2.214, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06459/0.06459, allocations: 10.74 MB / 280.5 MB, free: 10.51 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.002509/0.002509, allocations: 75.89 kB / 340.7 MB, free: 23.22 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1277, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003749/0.1315, allocations: 1.765 MB / 391.4 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.1328, allocations: 0.6243 MB / 392.1 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.1329, allocations: 11.94 kB / 392.1 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.1331, allocations: 19.73 kB / 392.1 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.1332, allocations: 35.66 kB / 392.1 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003423/0.1336, allocations: 87.81 kB / 392.2 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.1339, allocations: 207.4 kB / 392.4 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.134, allocations: 41.81 kB / 392.4 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.1342, allocations: 83.69 kB / 392.5 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.1343, allocations: 83.61 kB / 392.6 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.1344, allocations: 16 kB / 392.6 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.187e-05/0.1344, allocations: 19.94 kB / 392.6 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.619e-05/0.1345, allocations: 43.81 kB / 392.7 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1346, allocations: 83.53 kB / 392.8 MB, free: 3.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1349, allocations: 167.3 kB / 392.9 MB, free: 2.844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1349, allocations: 4 kB / 392.9 MB, free: 2.84 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1349, allocations: 0 / 392.9 MB, free: 2.84 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.1349, allocations: 0 / 392.9 MB, free: 2.84 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.00127/0.1362, allocations: 0.5645 MB / 393.5 MB, free: 2.215 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.1363, allocations: 11.89 kB / 393.5 MB, free: 2.203 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.682e-05/0.1364, allocations: 46.73 kB / 393.6 MB, free: 2.148 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.018e-05/0.1364, allocations: 24.66 kB / 393.6 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000348/0.1368, allocations: 243.8 kB / 393.8 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-05/0.1369, allocations: 67.95 kB / 393.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.137, allocations: 16.38 kB / 393.9 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005562/0.1375, allocations: 196.6 kB / 394.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.1376, allocations: 0 / 394.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.349e-05/0.1376, allocations: 4 kB / 394.1 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.1376, allocations: 3.984 kB / 394.1 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006466/0.1382, allocations: 159.8 kB / 394.3 MB, free: 1.383 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.1394, allocations: 0.6371 MB / 394.9 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/0.1401, allocations: 158.4 kB / 395.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.1405, allocations: 80.78 kB / 395.1 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.1405, allocations: 4.125 kB / 395.1 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007022/0.1412, allocations: 171.1 kB / 395.3 MB, free: 264 kB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.1412, allocations: 0 / 395.3 MB, free: 264 kB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.001233/0.1425, allocations: 293.3 kB / 395.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.1425, allocations: 59.34 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.1428, allocations: 199.8 kB / 395.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.1428, allocations: 29.7 kB / 395.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1429, allocations: 148 kB / 396 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.393e-05/0.143, allocations: 39.45 kB / 396.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.037e-05/0.1431, allocations: 45.7 kB / 396.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1432, allocations: 330.8 kB / 396.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003693/0.1436, allocations: 87.92 kB / 396.5 MB, free: 15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.144, allocations: 141.9 kB / 396.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000754/0.1448, allocations: 276.5 kB / 396.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1448, allocations: 0 / 396.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009557/0.1457, allocations: 340.5 kB / 397.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.062e-05/0.1458, allocations: 67.34 kB / 397.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1459, allocations: 192 / 397.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.543e-05/0.1459, allocations: 12 kB / 397.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.1464, allocations: 55.89 kB / 397.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.1464, allocations: 7.984 kB / 397.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003044/0.1467, allocations: 43.8 kB / 397.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.1467, allocations: 12 kB / 397.4 MB, free: 13.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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.0001601/0.1469, allocations: 133.8 kB / 397.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.1469, allocations: 19.75 kB / 397.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.029e-05/0.147, allocations: 21.52 kB / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.147, allocations: 0 / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.147, allocations: 0 / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.1471, allocations: 4 kB / 397.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.1473, allocations: 245.5 kB / 397.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.1473, allocations: 3.938 kB / 397.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.1478, allocations: 55.94 kB / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.1478, allocations: 0 / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.1478, allocations: 0 / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1478, allocations: 4 kB / 397.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1478, allocations: 0 / 397.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.149, allocations: 352.4 kB / 398.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.1491, allocations: 104.8 kB / 398.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.1491, allocations: 4 kB / 398.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002653/0.1494, allocations: 36.02 kB / 398.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1495, allocations: 23.97 kB / 398.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.1496, allocations: 8 kB / 398.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001396/0.1497, allocations: 141.5 kB / 398.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1497, allocations: 0 / 398.6 MB, free: 12.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002992/0.15, allocations: 39.98 kB / 398.6 MB, free: 12.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001553/0.1516, allocations: 0.8815 MB / 399.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008929/0.1525, allocations: 322.5 kB / 399.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1525, allocations: 0 / 399.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.1529, allocations: 97.05 kB / 399.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.1532, allocations: 39.69 kB / 399.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.1575, allocations: 2.301 MB / 402.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003972/0.158, allocations: 0.7202 MB / 403 MB, free: 8.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.1581, allocations: 25.53 kB / 403 MB, free: 8.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.1582, allocations: 47.42 kB / 403 MB, free: 8.082 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1582, allocations: 4 kB / 403 MB, free: 8.078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03026/0.1885, allocations: 4.288 MB / 407.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/14.65, allocations: 448 / 407.3 MB, free: 3.848 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1)