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 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.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.005064/0.005064, allocations: 107.4 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.001363/0.001363, allocations: 193.5 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.41/1.41, 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.06488/0.06488, allocations: 11.2 MB / 301.7 MB, free: 4.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 70.62 kB / 417.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09351, allocations: 51.98 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003162/0.0967, allocations: 1.773 MB / 471.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.09787, allocations: 0.5805 MB / 471.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001386/0.09804, allocations: 11.94 kB / 471.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.09819, allocations: 19.8 kB / 471.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.0983, allocations: 31.66 kB / 471.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003002/0.09861, allocations: 87.81 kB / 471.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002964/0.09892, allocations: 215.4 kB / 472 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.09906, allocations: 41.81 kB / 472.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.09921, allocations: 79.69 kB / 472.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.09936, allocations: 99.58 kB / 472.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.09941, allocations: 16 kB / 472.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.43e-05/0.09945, allocations: 16 kB / 472.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.904e-05/0.0995, allocations: 31.84 kB / 472.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.09961, allocations: 79.53 kB / 472.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.09986, allocations: 171.3 kB / 472.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.09988, allocations: 0 / 472.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.09988, allocations: 0 / 472.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.0999, allocations: 0 / 472.6 MB, free: 11.85 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001154/0.1011, allocations: 0.5798 MB / 473.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.1011, allocations: 11.89 kB / 473.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.299e-05/0.1012, allocations: 42.73 kB / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.403e-05/0.1012, allocations: 20.84 kB / 473.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004139/0.1017, allocations: 267.9 kB / 473.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-05/0.1018, allocations: 67.95 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.1018, allocations: 12.38 kB / 473.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.1024, allocations: 200.8 kB / 473.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1024, allocations: 0 / 473.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.1024, allocations: 7.938 kB / 473.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.1024, allocations: 4 kB / 473.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006305/0.103, allocations: 147.8 kB / 473.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.1041, allocations: 0.6412 MB / 474.5 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006308/0.1047, allocations: 158.4 kB / 474.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.1051, allocations: 84.78 kB / 474.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.1051, allocations: 8 kB / 474.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000475/0.1056, allocations: 170.1 kB / 475 MB, free: 9.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.683e-06/0.1056, allocations: 0 / 475 MB, free: 9.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001102/0.1067, allocations: 285.4 kB / 475.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.1068, allocations: 63.41 kB / 475.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.107, allocations: 195.8 kB / 475.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.107, allocations: 33.7 kB / 475.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.1071, allocations: 140.3 kB / 475.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.1072, allocations: 43.69 kB / 475.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.032e-05/0.1073, allocations: 45.7 kB / 475.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1074, allocations: 330.8 kB / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.1078, allocations: 84.12 kB / 476.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.1082, allocations: 149.7 kB / 476.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006911/0.1089, allocations: 261.2 kB / 476.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1089, allocations: 8 kB / 476.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000885/0.1098, allocations: 350.9 kB / 476.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.572e-05/0.1099, allocations: 55.59 kB / 477 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1099, allocations: 8 kB / 477 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.1099, allocations: 0 / 477 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000419/0.1103, allocations: 63.89 kB / 477 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1104, allocations: 7.984 kB / 477 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.1107, allocations: 43.8 kB / 477.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.1107, allocations: 12 kB / 477.1 MB, free: 6.957 MB / 350.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.0001346/0.1108, allocations: 137.7 kB / 477.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.1109, allocations: 19.84 kB / 477.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.679e-05/0.1109, allocations: 29.45 kB / 477.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.111, allocations: 4 kB / 477.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.111, allocations: 0 / 477.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.111, allocations: 0 / 477.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.1112, allocations: 237.5 kB / 477.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.1112, allocations: 3.938 kB / 477.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.1117, allocations: 55.94 kB / 477.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1117, allocations: 3.938 kB / 477.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.1117, allocations: 8 kB / 477.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1117, allocations: 0 / 477.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1117, allocations: 3.984 kB / 477.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.1128, allocations: 344.7 kB / 477.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.822e-05/0.1129, allocations: 96.94 kB / 478 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.998e-05/0.1129, allocations: 0 / 478 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1132, allocations: 36.02 kB / 478.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.1133, allocations: 27.97 kB / 478.1 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.1133, allocations: 7.984 kB / 478.1 MB, free: 5.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1135, allocations: 137.5 kB / 478.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1135, allocations: 0 / 478.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.1137, allocations: 47.88 kB / 478.3 MB, free: 5.68 MB / 350.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.00151/0.1152, allocations: 0.8846 MB / 479.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000861/0.1161, allocations: 318.6 kB / 479.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1161, allocations: 448 / 479.5 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003667/0.1165, allocations: 99.86 kB / 479.6 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.1168, allocations: 35.97 kB / 479.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003843/0.1207, allocations: 2.301 MB / 481.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/0.1211, allocations: 0.7241 MB / 482.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.944e-05/0.1212, allocations: 13.55 kB / 482.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.1213, allocations: 59.41 kB / 482.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1213, allocations: 0 / 482.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.1496, allocations: 4.342 MB / 487 MB, free: 12.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.366/8.516, allocations: 6.625 kB / 487 MB, free: 12.86 MB / 366.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)