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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 220.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06696/0.06696, allocations: 11.33 MB / 323.8 MB, free: 8.203 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.91 kB / 451 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1124, allocations: 56.07 MB / 0.4952 GB, free: 2.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.003883/0.1163, allocations: 1.758 MB / 0.4969 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.1179, allocations: 0.6388 MB / 0.4976 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1181, allocations: 7.938 kB / 0.4976 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.1182, allocations: 23.73 kB / 0.4976 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.1183, allocations: 35.66 kB / 0.4976 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.1187, allocations: 75.84 kB / 0.4977 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000375/0.1191, allocations: 183.5 kB / 0.4979 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.1193, allocations: 22.02 kB / 0.4979 GB, free: 15.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.1195, allocations: 83.64 kB / 0.498 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.1197, allocations: 67.67 kB / 0.498 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.275e-05/0.1197, allocations: 12 kB / 0.4981 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.993e-05/0.1198, allocations: 20 kB / 0.4981 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.806e-05/0.1199, allocations: 35.78 kB / 0.4981 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.12, allocations: 67.66 kB / 0.4982 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003279/0.1203, allocations: 147.3 kB / 0.4983 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1203, allocations: 0 / 0.4983 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1203, allocations: 0 / 0.4983 GB, free: 15.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1203, allocations: 3.938 kB / 0.4983 GB, free: 15.1 MB / 382.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.00141/0.1217, allocations: 447.1 kB / 0.4987 GB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1218, allocations: 12.03 kB / 0.4988 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.526e-05/0.1219, allocations: 42.73 kB / 0.4988 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002334/0.1221, allocations: 32.78 kB / 0.4988 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005053/0.1226, allocations: 187.8 kB / 0.499 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000144/0.1227, allocations: 111.4 kB / 0.4991 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.1228, allocations: 12.38 kB / 0.4991 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.1232, allocations: 137.5 kB / 0.4993 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1233, allocations: 0 / 0.4993 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.1233, allocations: 4 kB / 0.4993 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.1233, allocations: 8 kB / 0.4993 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.1238, allocations: 123.9 kB / 0.4994 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008179/0.1246, allocations: 399.5 kB / 0.4998 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004774/0.1251, allocations: 122.4 kB / 0.4999 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.1253, allocations: 64.73 kB / 0.4999 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.1253, allocations: 0 / 0.4999 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003883/0.1257, allocations: 127.3 kB / 0.5001 GB, free: 13.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.1257, allocations: 0 / 0.5001 GB, free: 13.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008449/0.1266, allocations: 241.5 kB / 0.5003 GB, free: 12.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.1266, allocations: 51.41 kB / 0.5003 GB, free: 12.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.1268, allocations: 191.1 kB / 0.5005 GB, free: 12.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.1269, allocations: 25.7 kB / 0.5006 GB, free: 12.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.127, allocations: 132.2 kB / 0.5007 GB, free: 12.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.127, allocations: 24 kB / 0.5007 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.921e-05/0.1271, allocations: 33.7 kB / 0.5007 GB, free: 12.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1273, allocations: 330.8 kB / 0.501 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.1275, allocations: 67.92 kB / 0.5011 GB, free: 12.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002689/0.1278, allocations: 94.05 kB / 0.5012 GB, free: 11.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.1283, allocations: 180.8 kB / 0.5014 GB, free: 11.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1283, allocations: 0 / 0.5014 GB, free: 11.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006125/0.1289, allocations: 227.1 kB / 0.5016 GB, free: 11.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.1289, allocations: 41.64 kB / 0.5016 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1289, allocations: 0 / 0.5016 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.129, allocations: 4 kB / 0.5016 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.1292, allocations: 27.91 kB / 0.5017 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1292, allocations: 12.08 kB / 0.5017 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002403/0.1294, allocations: 31.86 kB / 0.5017 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.681e-05/0.1294, allocations: 8 kB / 0.5017 GB, free: 11.35 MB / 382.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.0001193/0.1295, allocations: 125.8 kB / 0.5018 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.648e-05/0.1296, allocations: 15.84 kB / 0.5018 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.805e-05/0.1296, allocations: 21.39 kB / 0.5019 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1296, allocations: 4 kB / 0.5019 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1296, allocations: 4.375 kB / 0.5019 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1296, allocations: 3.938 kB / 0.5019 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.1298, allocations: 192.6 kB / 0.5021 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1298, allocations: 3.984 kB / 0.5021 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.13, allocations: 31.91 kB / 0.5021 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.13, allocations: 3.938 kB / 0.5021 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.13, allocations: 0 / 0.5021 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.13, allocations: 0 / 0.5021 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.13, allocations: 0 / 0.5021 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006489/0.1307, allocations: 204.8 kB / 0.5023 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.1307, allocations: 15.84 kB / 0.5023 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.1307, allocations: 11.94 kB / 0.5023 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.1309, allocations: 31.95 kB / 0.5024 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.131, allocations: 19.97 kB / 0.5024 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.131, allocations: 0 / 0.5024 GB, free: 10.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001125/0.1311, allocations: 135.2 kB / 0.5025 GB, free: 10.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1311, allocations: 0 / 0.5025 GB, free: 10.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.1314, allocations: 24 kB / 0.5025 GB, free: 10.45 MB / 382.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.0008888/0.1322, allocations: 0.7449 MB / 0.5033 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005944/0.1328, allocations: 203.3 kB / 0.5034 GB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1328, allocations: 0 / 0.5034 GB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.1331, allocations: 71.92 kB / 0.5035 GB, free: 9.391 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.1334, allocations: 22.75 kB / 0.5035 GB, free: 9.371 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003177/0.1365, allocations: 1.945 MB / 0.5054 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.1369, allocations: 0.7162 MB / 0.5061 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.056e-05/0.137, allocations: 13.08 kB / 0.5061 GB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.598e-05/0.1371, allocations: 43.42 kB / 0.5062 GB, free: 6.516 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1371, allocations: 4 kB / 0.5062 GB, free: 6.512 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03001/0.1671, allocations: 3.688 MB / 0.5098 GB, free: 2.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.26, allocations: 7.984 kB / 0.5098 GB, free: 2.969 MB / 382.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP_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_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.107737892998557] Failed to read output from testmodel.py, exit status != 0: 11.367568687004677 11.568413151 11.445305985 Calling exit ...