Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 106.5 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 196.6 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.065/0.065, allocations: 11.35 MB / 314 MB, free: 14.95 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-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.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 67.89 kB / 437.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1079, allocations: 54.84 MB / 492.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003514/0.1114, allocations: 1.813 MB / 494 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.1125, allocations: 0.6117 MB / 494.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.1126, allocations: 7.938 kB / 494.6 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.1127, allocations: 23.73 kB / 494.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.1128, allocations: 39.59 kB / 494.7 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.1131, allocations: 111.8 kB / 494.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.1134, allocations: 223.4 kB / 495 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1136, allocations: 40.55 kB / 495 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.1137, allocations: 95.62 kB / 495.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.1138, allocations: 99.52 kB / 495.2 MB, free: 448 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.756e-05/0.1139, allocations: 16 kB / 495.2 MB, free: 432 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.039e-05/0.1139, allocations: 16 kB / 495.3 MB, free: 416 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.321e-05/0.114, allocations: 43.84 kB / 495.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.1141, allocations: 91.44 kB / 495.4 MB, free: 280 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1143, allocations: 203 kB / 495.6 MB, free: 76 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1143, allocations: 0 / 495.6 MB, free: 76 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1143, allocations: 0 / 495.6 MB, free: 76 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.1144, allocations: 0 / 495.6 MB, free: 76 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001112/0.1155, allocations: 0.5706 MB / 496.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1155, allocations: 15.89 kB / 496.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.852e-05/0.1156, allocations: 50.73 kB / 496.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.236e-05/0.1156, allocations: 28.8 kB / 496.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/0.1161, allocations: 299.8 kB / 496.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.642e-05/0.1162, allocations: 101.7 kB / 496.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.1162, allocations: 12.38 kB / 496.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00048/0.1167, allocations: 185.4 kB / 496.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1167, allocations: 4 kB / 496.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.1167, allocations: 4 kB / 496.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1168, allocations: 4 kB / 496.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005005/0.1173, allocations: 151.8 kB / 497 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.1184, allocations: 0.5781 MB / 497.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000487/0.1189, allocations: 142.4 kB / 497.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.1192, allocations: 76.8 kB / 497.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.1192, allocations: 4 kB / 497.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003811/0.1196, allocations: 139.3 kB / 497.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.1196, allocations: 0 / 497.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008806/0.1204, allocations: 277.5 kB / 498.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.1205, allocations: 55.41 kB / 498.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1207, allocations: 207.1 kB / 498.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.1208, allocations: 29.7 kB / 498.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1209, allocations: 148.3 kB / 498.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.892e-05/0.1209, allocations: 35.69 kB / 498.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.188e-05/0.121, allocations: 41.7 kB / 498.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002234/0.1212, allocations: 334.8 kB / 499 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.1215, allocations: 79.94 kB / 499.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.1218, allocations: 107.4 kB / 499.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005288/0.1223, allocations: 207.5 kB / 499.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1223, allocations: 0 / 499.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000707/0.123, allocations: 267.1 kB / 499.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.123, allocations: 33.8 kB / 499.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1231, allocations: 7.938 kB / 499.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1231, allocations: 0 / 499.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006742/0.1237, allocations: 75.94 kB / 499.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1238, allocations: 0 / 499.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.124, allocations: 39.86 kB / 499.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.124, allocations: 4 kB / 499.8 MB, free: 11.52 MB / 366.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,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0001722/0.1242, allocations: 137.7 kB / 500 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.1242, allocations: 23.78 kB / 0.4883 GB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.1242, allocations: 21.41 kB / 0.4883 GB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.1242, allocations: 3.984 kB / 0.4883 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.1242, allocations: 0 / 0.4883 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1242, allocations: 0 / 0.4883 GB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.1246, allocations: 277.4 kB / 0.4886 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1246, allocations: 0 / 0.4886 GB, free: 11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.1257, allocations: 71.94 kB / 0.4886 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1257, allocations: 0 / 0.4886 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.1258, allocations: 0 / 0.4886 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.1258, allocations: 4 kB / 0.4886 GB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.1258, allocations: 11.98 kB / 0.4887 GB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009011/0.1267, allocations: 313 kB / 0.489 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.1268, allocations: 97.02 kB / 0.489 GB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.242e-05/0.1268, allocations: 4 kB / 0.489 GB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.127, allocations: 24 kB / 0.4891 GB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.922e-05/0.1271, allocations: 20.06 kB / 0.4891 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.1271, allocations: 11.98 kB / 0.4891 GB, free: 10.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.1273, allocations: 144.6 kB / 0.4892 GB, free: 10.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1273, allocations: 0 / 0.4892 GB, free: 10.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003644/0.1276, allocations: 39.89 kB / 0.4893 GB, free: 10.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.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 (12): * Single equations (assignments): 9 * 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.001448/0.1291, allocations: 0.8654 MB / 0.4901 GB, free: 9.348 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006924/0.1298, allocations: 223.2 kB / 0.4903 GB, free: 9.117 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1298, allocations: 0 / 0.4903 GB, free: 9.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00028/0.1301, allocations: 84.06 kB / 0.4904 GB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.1303, allocations: 24.66 kB / 0.4904 GB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.1342, allocations: 2.225 MB / 0.4926 GB, free: 6.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.1346, allocations: 0.7357 MB / 0.4933 GB, free: 5.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.1348, allocations: 25.53 kB / 0.4934 GB, free: 5.898 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/0.1349, allocations: 63.42 kB / 0.4934 GB, free: 5.836 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1349, allocations: 7.875 kB / 0.4934 GB, free: 5.828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.164, allocations: 4.135 MB / 0.4975 GB, free: 1.848 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.248/8.412, allocations: 26.33 kB / 0.4975 GB, free: 1.824 MB / 366.1 MB " [Timeout remaining time 652] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.880131666082889] Failed to read output from testmodel.py, exit status != 0: 8.48072267184034 8.496931082 8.379476721 Calling exit ...